Software Development Network Logo
  • Windows Forms
  • SharePoint Products
  • IE Development
  • .NET Development
  • Game Technologies
  • VS Team System
  • SQL Server
  • Audio and Video
  • Visual FoxPro
  • Visual Studio
  • Visual Basic
  • Visual C#
  • Smart Devicet
  • Windows Vista
  • Microsoft ISV

Software Development Network >> Michael Carty's Q&A profile

Michael Carty

Member List

OliverWein
poita
ahmedilyas
Dave Patricio
Ltl Hawk
Spenceee
GDigrego
daxu
Shirvo
j_m_d
DavidDo
krig
mh1hep
FourBlades
Osmose1000
arogan
djsavlon
Abelard
Mortsdeh
diver182
Only Title

Michael Carty's Q&A profile

  • Visual Studio Express Editions tableadapter convert or something else

    hi, for a task at school I need to make a program that calls up data from the database with a barcodescanner, th problem is that the fill of my tableadapter needs an integer but the barcode number is to big to be an integer any one got some advice doubletrouble, The TableAdapter object is filled by dataset, I suggest you to redesign your DataTable in DataSet, firstly make the barcode number to string, then convert it to integer in your memory datatable. Actually, there is soomething wrong with your database. I suggest you to change the certain data type for your field if it is possible. ...Show All

  • .NET Development Check if object implements generic interface

    I have some object. I need to know, implements this object IEnumerable<T> interface, and if so, get type of T. Have any one ideas on how to do that has found one way to do that: object o; foreach (Type t in o.GetType().GetInterfaces()) { if (t.IsGenericType) { if (t.GetGenericTypeDefinition() == typeof(IEnumerable<>)) { // o implements IEnumerable<T> foreach (Type tt in t.GetGenericArguments()) { // tt is Type parameter } } } } may be is there more regular way ...Show All

  • SQL Server Can't store chinese in SQL Database

    update Food set FoodName = ' 杏仁' where ID = 100 in database as Or set the collation settings in SQL Server. If this is SQL Server 2000, you need to run the rebuildm.exe to change the current collation settings. But this will affect other databases in your server ...Show All

  • SQL Server SQL EXPRESS TIMEOUT

    The default is sest to 15 seconds that of course is no good because it takes more than that to attact the damm database though is very small. Does any one know how to modify the connection timeout I'd try including it on the Connection String but no luck. it looks like it detaches the database after a period of inactivity. If anyone knows anything about please let me know THANKS Thanks for the info here is the problem The database is attached by the ASP application I created it is a simple website to submmit information to a database the database in question here is the ASPLOGIN database not where the data goes. this gets set on the webconfig file on the root site, apparently it attaches e ver ...Show All

  • Windows Forms How to create a alpha-blended & transparent rectangle with shadow

    How to draw a round-edge rectangle (lenght 200, height 30). Border color should be white and the interior totally tansparent Plus the borders should be alpha-blended with smooth shadows / blurring effect Is it possible to create this using .NET's native GDI+ The following piece of code will get you a rounded rectangle with a alpha blended white border: protected override void OnPaint(PaintEventArgs e) { Rectangle b = new Rectangle (30, 30, 200, 30); using ( GraphicsPath path = new GraphicsPath ( FillMode .Alternate)) { path.AddArc(b.X, b.Y, 10, 10, 180, 90); path.AddLine(b.X + 5, b.Y, b.X + b.Width - 5, b.Y); path.AddArc(b.X + b.Width - 10, b.Y, 10, 10, 270, 9 ...Show All

  • Microsoft ISV Community Center Forums Newbie problem: storing in an array

    Hello, I'm new to VBA. I've some questions regarding to array. Here's the code linked with excel spreadsheet: Function Function1(DailyClose, EFBillsYield) TradingDays = Application.WorksheetFunction.Count(DailyClose) For i_cnt = 1 To TradingDays - 1 DailyReturn = Application.WorksheetFunction.Ln(DailyClose(i_cnt) / DailyClose(i_cnt + 1)) Next i_cnt AnnualReturn = Application.WorksheetFunction.Average(DailyReturn) * TradingDays AnnualVolatility = Application.WorksheetFunction.StDev(DailyReturn) * Sqr(TradingDays) RiskFreeRate = Application.WorksheetFunction.Ln(1 + EFBillsYield) Function1 = (AnnualReturn - RiskFreeRate) / AnnualVolatility End Function When I enter the parameters DailyClose (which is an array of n ...Show All

  • Software Development for Windows Vista Inconsistent File System Enumeration with FindFirstFile / FineNextFile

    I'm working to get a commercial application to run on Vista. Among the many broken things, the first one I encounter is a crash due to a stack overflow due to a recursive function that goes bad. The app enumerates files in various places using FindFirstFile | FineNextFile in a recursive function (C++). I'm using retail Vista Ultimate with VS 2005 sp1 plus the VS Vista update beta. What I see in the debugger is that when I start out enumerating drive "c:", I come to the "Documents and Settings" folder and recurse into it. When I get to "c:\Documents and Settings\All Users\Application Data", FindNextFile then returns "Application Data" over and over again and I recurse into "Application Data&qu ...Show All

  • Visual Basic Storing the value of a field from a table into a variable to be displayed on the screen

    I know I am close with what I am doing but haven't found quite the right combination yet. I am a newbie so please bare with me!! I have a table called Dimension1Goal1 in a dataset called CCADPDataset that I am trying to pull the value of a field called Intervention1_1 out of to display on the screen. Her is what I have coded: Dim DimGoalMethod As String DimGoalMethod = CCADPDataSet._Dimension1_Goal1.Intervention1_1Column I keep getting the error Value of type 'System.Data.DataColumn' cannot be converted to 'String'. The properties of the field is a system.string, why can't I do this and what should I do HELP!! You can refer to the items by index or name. Whichever is more suitable. Name is sometime more robust ...Show All

  • .NET Development Requirement on XSLT- Checkboxlist, XML and XSLT.

    Hi, This is related to the Checkboxlist, XML and XSLT. I have a requirement where the controls are dynamically generated from an XML. This is my sample XML file: < Question Name = " Check " TypeMode = " Check " Text = " What’s ur tech " Value = "" Type = " DropDownList " > < answer ></ answer > < answer > Yes </ answer > < answer > No </ answer > </ Question > < Question Name = " Check " TypeMode = " Check " Text = " Please select one or more Technologies " Value = "" Type = " CheckBoxList " > < answer ...Show All

  • Internet Explorer Development IE7, OE6 Printing problems with headers

    Having an intermittent problem printing To: From: CC: Subject: Attachments: headers on emails. Usually happens with larger emails or emails with large attachments or emails that have been replied to or forwarded from other people. Have installed Generic/text printer and sent the email to this printer but sometimes the headers are still missing even printing this way. I have if I open the offending email and highlight just one or two words in the text of the email eg Dear John and then print the email using my HP printer (not as text on Generic printer) - the headers then print and so does the selected words. Don't suggest using Outlook as often we only print the first page of emails as we already have the rest of the email on file especial ...Show All

  • Audio and Video Development Question about doing changing focus and navigation in one tick

    Dear All, I encountered a situation which caused much trouble to us...: Assume there are 3 buttons: Top1, Top2 and Bottom1, Top2's navLeft is set to Top1, and Bottom1's navLeft is set to Bottom1 (it self). When the focus is at Bottom1, and the user pressed left key, there is a keydown callback function in java script, which will catch the left key and set focus to Top2 by using setProperty() function. But the java script did not call stopPropagation() to stop this key down event to the markup. So when the user actually pressed left key on Bottom1, the js engine will set the focused element to Top2, and then in the markup handler the left key event is processed, then the focused element is set to Top1. All these actions are ...Show All

  • Windows Forms help with clickOnce Applications

    hi all. we are developing winfroms application, and we are using ClickOnce tech' to publish them. BUT - how can we didtribute neccessery dll's can we publish a setup pacakge or somthing like it Hi, all dlls, required by your application should be automatically included in the ClickOnce deployment "package" when you publish your application. Are they not [you could check which files are included and how, if you go to your Publishing settings (Project properties, Publish page, Application Files...] Andrej ...Show All

  • SQL Server Drill Downs in the Report

    I am working on a report in our application, when suddenly a design problem strikes me..how can i make the drill downs to be expanded initially if there is a record to show and not expanded if there is no record to show..is this possible in the reporting services 2005 any help will be highly appreciated..tnx in advance.. GOD bless us.. In RS , it is written like IIF(expression, truepart, falsepart).But it doesn't work. You should think like IIF(expression, falsepart, truepart) So you should write = Not IsNothing(Fields!task_name.Value) ...Show All

  • Software Development for Windows Vista Vista SDK Installation Problem

    The Vista SDK Dont Integrate With My MSVS2005, Why It certainly should integrate with VS05. Can you post some more details on what happens so we can try to repro ...Show All

  • Visual Studio Express Editions What is the Best Method?

    What is the best method to get file names from a directory in order to rename them ahh....thanks Renee!! Okay so having spent some time trying some different methods or techinques I am not sure what I should do.  I was sure that I could use a If InStr method in order to read the filenames in order to stop the renaming of the whole file and just rename the filename UPTO an @ symbol or even "."...but alas no avail.   So my question is how do you read an array, 1 file at a time in order to stop the renaming of a file at a specific point.  I am not even sure how to formulate that question in the HOW TO: part of the MSDN. When I tried the If InStr (TheFiles, "@") > 0 t ...Show All

©2008 Software Development Network