i have numerous textboxes on my form that i want a user to fill up. I want a situation whereby when u user types in invalid data like non numeric letters in a numeric only textbox a label will appear notifying that its a numeric only textbox and returns focus to that textbox. so my question is how do i perform this validation. currently my code does not allow the user to input anything other than numbers only
how do i capture event to validate a textbox
Page 1 of 11 Replies - 356 Views - Last Post: 20 November 2012 - 06:38 AM
Replies To: how do i capture event to validate a textbox
#2
Re: how do i capture event to validate a textbox
Posted 20 November 2012 - 06:38 AM
You can set the CausesValidation property to true on the textboxes and then handle what you need in the Validate event.
This event is raised when the user leaves that textbox.
If you want to capture it at keypress level then use one of the Key events.
This event is raised when the user leaves that textbox.
If you want to capture it at keypress level then use one of the Key events.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|