Answer Questions
R. Brian Lindahl How to link or unlink (enable or disable ) the Event handler Programatically?
I have an event handler like this (In V.C++ 2003) bindingManager->PositionChanged += new EventHandler(this, RowChanged); Depending on the need, I have to enable or disable this EventHandler Programatically. How can I do it Thanks, Jil. Great! Thanks Vikram Hi, The syntax for unregistering an event is as follows: bindingManager->PositionChanged -= new EventHandler( this , RowChanged); So, you can register an ...Show All
GoPro Create a control that uses complex data binding
I want to create two controls I want to create a control that I can bind to a given result set. For example I want this control to display four fields, FirstName, LastName, Phone and Fax. Let' call this the contact control. I also w ...Show All
Erik Wynne Stepp Change the image of a DatagridviewImagecolumn for a specified cell
First, I don't speak english. Sorry. I want to change the image of a DatagridviewImagecolumn column. First I check all the cells of DATA column and depend of this value I want to put an image into the current cell in the IMAGE column. IMAGE DATA(DatagridviewdataTextBoxColumn) image1 1 image2 2 image1 1 image ...Show All
CMR12963 Maskedtextbox and SelectAll()
Hi, If have a problem with the maskedtextbox. I want the select all the text when the the maskedtextbox got focused (via "Enter" event). and then using the maskedTextBox.SelectAll () funtion. It works fine without putting a mask. But when i put the mask = "00000", the SelectAll() funtion doesnt work anymore. Little side question, whats the difference between the mask "00000" and the mask "99999". Can anyone ca ...Show All
VBScriptor Child window Size problem
I have initialized the Form1 parent window shown below: void InitializeComponent(void) { // // Form1 // this->AutoScaleBaseSize = System::Drawing::Size(5, 13); this->ClientSize = System::Drawing::Size(292, 266); this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle; this- ...Show All
Noobyone A problem with SHDocVW.dll
Hello, when I reference SHDocVW.dll in my C# application I get a problem with OpenFileDialog. When I try to open a folder with the right mouse button I get the following error message: "Cannot find the file ... (or one of its components). Make sure the path and filename are correct and that all required libraries are avaliable" If I open the folder with double-click, it works. Can anybody help me Thanks Vladislav ...Show All
jwong008 TreeView XP style
I have managed to get XP Styles in my app (its taken a long time to figure it out) but now the treeview doesn't seem to look right. It starts off with a Win98 style scroll bar and once I resize it the scroll bar turns ...Show All
Peter Z NTD app probes for non-existent app.resources.dll file
A simple windows forms application with a toolbar based on an imagelist will cause this problem. The images are embedded in the form/assembly - there is no separate resource file. No culture-specific settings have been changed from defaults. Whe ...Show All
Derek Slinn Obtaining images from Imagelists based on image name
Hi, I am designing a form in which there are some buttons created dynamically and each button has an image associated with it. The images are taken from an imagelist. During the application start up, the imagelist is loaded dynamically. My application needs to extract icons from the imagelist based on the icon name.The imagelist is to be searched and the index number of the particular icon is obtained I have tried to use the the getind ...Show All
Eyfel Sending keystrokes...
I'm trying to emulate sending a "CTRL-N" to a form in a Windows app after checking for a previous instance of the application. Once I determine if the users has the existing application up, I activate the current window, send a keystroke&n ...Show All
lingo302 Help add nodes to treeview by reading rows from table.
HI, I am a beginner of VB.net. Now I am using it to do a database project. Just for my own usage. My problem is I defined a treeview in my windows form, called treeview1. And I added manually 5 nodes into it which ...Show All
stratos13 Combo boxes and Databinding
On a form, I have 3 comboboxes. Because of the nature of the application, they each hold the same information (Vascular Access Sites). the problem I am having is that when one selection is made, the selected items on the other two ...Show All
kaye HitTestInfo in DragDrop
DataGrid2_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles DataGrid2.DragDrop Dim myGrid As DataGrid = CType(sender, DataGrid) Dim hti As System.Windows.Forms.DataGrid.HitTestInfo h ...Show All
weboy Read line by line
Hello I have a TextBox full of lines of text and now all I want to do is just read them Line by Line ! Regards Doesn't look like TextBox supports that, but I know another way using the String.Split function. public void&n ...Show All
Ibrahim Hafidh Background gradient
Can someone point me in the direction of how the background gradient is added to the popup windows I have looked the code over and cannot find it. I can't even find the image in the project Thnx, drew10uga Hi drew10uga, Are& ...Show All
