Windows Develop Bookmark and Share   
 index > Windows Forms General > Validating event
 

Validating event

Hi,
Could someone tell me how to get the name of the control on which the user has clicked, when the Validating event of the current control is raised.

Say if you are in a textbox, you leave it by clicking on a Treeview, I'd like to check in the Validating event of the textbox that the control the user has clicked on is a Treeview.

How can I do that ?

Thank you.
graphicsxp  Friday, December 02, 2005 10:06 AM
The bug was related to VS2005 beta 2... :-( I've upgraded to VS2005 express, and it works just fine
graphicsxp  Tuesday, December 06, 2005 11:11 AM
Actually I would like to bring some precisions to my first post.
My application is a MDIParent with a child form. The MDIParent contains the Treeview and the child contains the textbox. A sample can be downloaded here: http://graphicsxp.free.fr/ValidatingSample.zip (click on New Document to open the child form)
This bug do NOT occur with VS2003, only with VS2005 where the MDIParent.ActiveControl is always the child form....Sad

Can you help ?
graphicsxp  Friday, December 02, 2005 11:20 AM
Can someone help on this please ?
Maybe my description is not clear enough :-(

graphicsxp  Monday, December 05, 2005 9:40 AM
The bug was related to VS2005 beta 2... :-( I've upgraded to VS2005 express, and it works just fine
graphicsxp  Tuesday, December 06, 2005 11:11 AM

You can use google to search for other answers

Custom Search

More Threads

• How to make a help file?
• How to create PopupNotifier in C#
• Saving control sate to persistent medium
• Graduation Project
• "PropertyGrid" problem
• Displaying selected text on an inactive form
• spy++
• Copy and Paste Keyboard Shortcuts won't work in Rich Text Box.
• converting a date object to a string
• How to minimize form with border style none