Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created form in windows application . i have set button.enable = false in page load event. i am use errorprovider to validate data in form . after validating form button should be enable .if any type of error is coming errorprovider blink and display error.if error solved button should be enable.
Posted
Comments
efkah 3-Aug-12 5:04am    
the errorprovider does not do any validation. you will have to jump into your code where the validation happens and add something like "if (isValid) { button.Enabled = true; }"

1 solution

Hi,
Isn't it possible you to validate the data in a Single method and call that method in all textbox entries.

You may call that method in the Key press event.

Also you may be able to use below events,

Enter
GotFocus
Leave
Validating
Validated
LostFocus
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900