dnhxx's Q&A profile
Windows Forms Newbie to Windows Forms...
I would consider myself a high level programmer with VB.NET and ASP.NET, but I am new to the world of Windows Forms. Is there a book that offers great example examples on getting started I am having trouble with finding code examples that  ...Show All
.NET Development Can not add validation event handler for a Column.
Hi! I'm getting following error: Failed to add validation event handler because of the following error: Invalid Index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) When I double click on a column of datatable in dataset designer to add column validation handler. Can anybody tell me whether this is a bug or some error. How can I fix it Or is there anyother way to add event handler for a datacolumn regards. I'm us ...Show All
Windows Forms How do I stop the character from appearing in a Textbox
I'm writing an HTML Editor and I added a feature that adds a <br /> if shift + enter is pressed and a if shift + space is pressed. However the enter/space is still added to the text box. Any Ideas on how to stop the enter/space from apearing The code which is already catching the keypress to impliment this gets passed an event handler. This has a Handled property. Set it to true. ...Show All
Visual Studio Express Editions auto brace formatting in visual c++ 2005 express edition...
Hi, I was wondering how to set up visual c++ express edition so that if I do this int foo(param1, param2, param3, param4 param5, param6, param7){ doesnt indent to here-----> but instead indents to here--> any ideas Indenting options are set with Tools + Options, Text Editor, C/C++, Tabs. You won't find a setting that solves your problem though. Annoying isn't it... ...Show All
Visual Studio 2008 (Pre-release) How do I invalidate/refresh the window?
How do I invalidate/refresh the window before performing a time consuming operation in the main thread I need the mouse cursor to update and the rect under a dialog box (which just closed) to be repainted before this operation starts. I thought maybe InvalidateVisual() would work, but it didn't. (I know, I should put time consuming operations in background threads, but I'm not quite there yet). Thanks, Tor. ...Show All
Visual C++ LINK.EXE BUG: /OPT:NOREF option doesn't work!
My program contains static objects whose constructors are supposed to run at the beginning of the program, but otherwise those variables are unreferenced . The problem is, when I put these variables into a .lib file, they get completely optimized away and never appear in the resulting .exe! My understanding is that /opt:noref is supposed to cure this, however, it has absolutely no effect. I also tried __declspec(selectany) on the vars, al ...Show All
SQL Server Keep getting Virtual Memory errors
Hello, I am wondering if there is a way to solve a virtual memory error We randomly get the following error when trying to run sycn over the http websync. Some clients have 512 MB running sql express, others are full instances that have 1.5 GB. The merge process could not allocate memory for an operation; your system may be running low on virtual memory. Restart the Merge Agent. Is this the error thro ...Show All
SQL Server Parameter Information cannot be derived from SQL statements with sub-select queries
Parameter Information cannot be derived from SQL statements with sub-select queries. Set Parameter information before preparing command. Here's the query: update GCDE_SEQ set LAST_NO = (select max(FLD_NO) from PONL_FLD) ,UPDT_USER = ,UPDT_DT = getdate() where SEQ_NM = 'FLD_NO' Why can't Execute SQL Task handle this simple query I figure i can use 2 SQL Execu ...Show All
Windows Forms How to associate file types with program?
I'm creating a small windows app in which I have a cusom file extension that I'm using to save/open the files. I was wondering how you associate a file type with a particular program. Is this done through the setup, somewhere in the ...Show All
Visual Studio Team System import using witimport fails in VSTS Beta3
I try to import WorkItem, using witimport utility. WorkItem pass validation successfully (witimport with /v flag). Actual import fails with "Account not recognized" error. I have logged in as tfssetup user which is domain user and member of TeamSystem Administrators group. Please help me out. Installations Installated Win2003 SP1 with latest updates, Team Foundation Server beta3 on server WinXP SP2 with latest updates, VSTS ...Show All
Visual C# How to include an extern file within an .exe application?
Hi all, I am new here and I would like to ask you a question. My experience in using windows forms is not so big, I am coming more from the Web Forms area. Trying to develop a C# Windows Form application I encounter some situations like: how can I use the .exe compiled application together with some resource files at run time To be more explicit, e.g. I have an application that is using an XML file located in the Data directory ...Show All
Smart Device Development PocketPC Emulator 2003 network
Hello, i've a problem with PocketPC Emulator 2003. I'm using VS 2005 Beta2 and i try to debug my application on emulator. I've connected the emulator with Microsoft LoopBack adapter (ping the emulator is ok) but i'm not able to browse the network from desktop and from emulator. But i'm able to access virtual storage card from emulator... I've disabled Win XP sp2 firewall and i've shared (with everyone full control) a folder in my pc... ...Show All
Visual Basic SMTP needs Password?
I have an SMTP program written in VB6 which sends automated reports (was in response to Outlook tightening up and asking for permission to send an email each time). Our IT recently decided they want the user authentication information when the SMTP program talks to the email server. It is easy to use a DLL to get the username of the person logged into windows, but I have found nothing on how to get the password. Is it even possible ( ...Show All
Windows Forms Combo Box Error - Too Many items in the combo box
Hi Guys, I am receiving the error listed on the subject. The error message is pretty obvious, but the question is: How many items can I add to a ComboBox In my case the number is > 32800.... Do exist any difference depending on the Op ...Show All
Visual C++ Retrieving CObArray from method
Hi, I need to manage a CObArray object in a class, but this object must be retrieved from another class. How can I implement the method of this class to get retrieved the object in the first class raulhsj wrote: Hi, I need to manage a CObArray object in a class, but this object must be retrieved from another class. How can I implement the method of this class to get retrieved the object in the first cla ...Show All
