Text Box input validation
-
Monday, March 11, 2013 9:41 PM
HI,
I am developing a program that receives input data from many textboxes. This is fine but I need to validate the data immediately the user leaves text box1 and before he /she goes to text box2 etc.
I want to validate the data immediately instead of waiting until the user clicks a button.
How can I do this?
Karlap
Karl A Phelan
- Moved by Allen Li - MSFT Wednesday, March 13, 2013 7:00 AM Windows Forms related.
All Replies
-
Tuesday, March 12, 2013 2:22 PMWhat are you developing: Web, WPF, Silverlight, WinForms?
Please mark as answer, if this was it. Visit my SQL Server Compact blog
-
Tuesday, March 12, 2013 8:35 PM
Hi ErikEK,
It is a VB WinForms development.
Karlap
Karl A Phelan
-
Wednesday, March 13, 2013 6:59 AMModerator
Hi Karlap,
You can handle this in TextBox Validating event handler, see http://msdn.microsoft.com/en-us/library/system.windows.forms.control.validating.aspx.
Best Regards,
Bob Wu
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Proposed As Answer by Cor LigthertMVP Wednesday, March 13, 2013 7:53 AM
- Marked As Answer by Bob Wu-MTMicrosoft Contingent Staff, Moderator Thursday, April 04, 2013 8:00 AM
-
Wednesday, March 13, 2013 7:04 AM


