Balamurugan Rajangam's Q&A profile
Windows Forms How to display "&&" characters in Menu Items using .Net
I am using .net version 1.1. I want to add the menu items dynamically. If the menu item having the text "char &&&&&& &&&&&&", it is displayed as char &&& &&&. How to display the character as normal text. I knew Mnemonic function avoiding the underscore to display. Please help me. Since the & identifies a mnemonic you have to double & to get it to ...Show All
Windows Forms Background worker and closing a form
I have a form that uses the BackgroundWorker component (C# 2.0) to do a series of jobs in a very long running loop. I am running into a senario where the windows form is closed by clicking on the "X" in the upper right hand corner. This of course is fine but I want to make sure that I exit the loop gracefully. Is this good enough private void Form1_FormClosing( object sender, FormClosingEventArgs e) { this .backgroundWork ...Show All
Windows Forms Databind the selected row in a DataGridView
Hi All, I wonder if it's possible to databind the selected row of a datagridview to a business object. (like it's possible with a dropdownlist) I use a datagridview to let the user select the right product to purchase. Now I put the selected row on the SelectionChanged Event in my object, but I don't like this to much... Any suggestions Thanks, Simon Did you remeber to change the Selection mode t ...Show All
SQL Server SQL Server 2005 Management Studio can't be found
Sorry if someone already covered this, but I can't find anything about it. I just installed (3 hours ago actually) SQL2005 Standard Edition (from the Launch event) on my machine, and i don't seem to have a shortcut to the SQL Server 2005 Management Studio anywhere. I looked for a likely executable, but couldn't find it anywhere. This wouldn't bother me as much if I could use Enterprise Manager from 2K, but SQL2005 will not allow it t ...Show All
Windows Forms Can a control access the DOM?
Is there a way I can reference objects within the HTML in which my control is embedded I'm developing a user control and marking it for COM Interop so I can embed it as an ActiveX control. I would like it to be able to&nb ...Show All
Visual Studio Problem with Links and Paths when renaming project
Hi all, I am working on a project with SourceSafe 6.0d build 31222 and encounter following problem when renaming a project: The projects in VSS have e.g. following files $/One/Two/ThreeA/File1.txt $/One/Two/ThreeB/File2.txt $/One/Two/ThreeC/File3.txt Paths and links for files inside folders ThreeA,ThreeB and ThreeC are correct: e.g. for File1.txt Paths contains $/One/Two/ThreeA/File1.txt When I rename project Two to e.g. TwoA, paths ...Show All
SQL Server Failure to run when using DTC
Does anyone hany any experience of using SSIS with MS DTC I have a package that runs successfully. When I switch it to using transactions (i.e. TransactionOption= Required ) it fails. I get the following messages in the log: -Starting distributed transaction for this container. -Failed to acquire connection " <connection-manager-name> ". Connection may not be configured correctly or you may not have the right permissions on this ...Show All
Visual Basic Arraylist in Arraylist
As a newbie I'm struggling how to set up an arraylist in an arraylist. dim TickerName as new arraylist dim Data as new arraylist Each tickerName contains an item with 1 Name, 1 MaxValue, 1 MinValue etc. (Class1) Additionally, each tickername must have an arraylist called Data, containing Prices, Volumes and Times (Class2 ) I've Googled for this but without result, at least one I could understand.. All help is appreciated ...Show All
Visual Studio Express Editions Instantiating Abstract Types from WSDL
I dynamically create a proxy class to call a web service from a variable number of web services which all implement a known method. This is done by using reflection. How do I instantiate abstract data types defined in the WSDL Hey, You can not instantiate any abstract data type. No matter where it resides (on the server or on ur local machine) ...Show All
Visual C++ When NOT to use /clr
I notice the new 2005 compiler happily compiles my native projects, even ones that contain inline asm and variable param functions. It just warns me about the native code generated. The managed c++ compiler in 2003 could not handle this. So, why would I ever want to not compile with the /clr option I have found in the past that a mixed code application can spend 50-90% CPU time in mscorwks.dll even without a single managed cla ...Show All
Visual C# Validating integers in a textbox
Is there a smart way of validating that a user has typed a integer in a textbox. I dont like the exception way by doing a int test = int.Parse(textbox.Text). Or is this a ok way of validating integer input into a textbox component. Thx, Jim private void searchText_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar != 8) { if (char.IsNumber(e.KeyChar) == false) { ...Show All
Visual C# Getting name of system connected via terminal services
I am writing an application which will be run on Terminal Services. Is it possible to get the name of the remote system running the application via TS So far the only luck I've had is getting the name of the TS server. Hello PInvoke WTSQuerySessionInformation(WTS_CURRENT_SERVER_HANDLE , WTS_CURRENT_SESSION , szWTSClientName, pszBuffer, pwdBytesRet) Happy remoting ...Show All
Visual C++ MS C++ 2005 express database mismatch error when compiling
Every time that I attempt to compile a c++ program I get a database mismatch error. When I looked this error up in the included documents, it said that I needed a newer version of dbi.dll. Where can I find this file I know that my programs work because they compile with ms vc++ 6.0 and the gcc complier. Here is the artilce where it told me "how to fix it," but I still cannot find the file that I need. Visual C++ Conc ...Show All
Smart Device Development Windows Mobile Version 5.0 compatible with Voice command.
T Mobiles latest smart phone is using Windows Mobile Version 5.0. Is the latest version (1.5) of Voice command compatible with Windows Mobile Version 5.0 I want to purchase the program but was told by another T Mobile user it is not. I'm currently using Verzion XV6700 running WM5. VC 1.5 does not support WM5. I've talked to MS and they indicated VC v1.51 will address WM 5.0 issues. VC does load but does n ...Show All
Visual C# timer loop from vb5
Hello I was wondering if C# has an equivalent to this: 'loop for .1 second Duration! = Timer + 0.1 Do Until Timer > Duration! Dummy = DoEvents() Loop You can use Application.DoEvents(), but personally I'd use a Timer object (drop a timer onto a form and set it's timeout appropriately, and add a handler for it's timer callback). ...Show All
