Answers

Mar 13, 2007 - 03:18 PM
Basically there is no validation control for Windows forms controls. You will have to write your own. You will set "Causes Validation" to true and then work with the validation events. These articles should give you some help:
http://msdn2.microsoft.com/en-us/libr...
http://msdn2.microsoft.com/en-us/libr...
http://msdn2.microsoft.com/en-us/libr...
Also have a look at this article at codeproject: http://www.codeproject.com/cs/miscctr...
Someone has written controls which give you what you wanted: ASP.NET Style validators for Winforms.
Hope this helps a bit
Cheers
Peter
http://msdn2.microsoft.com/en-us/libr...
http://msdn2.microsoft.com/en-us/libr...
http://msdn2.microsoft.com/en-us/libr...
Also have a look at this article at codeproject: http://www.codeproject.com/cs/miscctr...
Someone has written controls which give you what you wanted: ASP.NET Style validators for Winforms.
Hope this helps a bit
Cheers
Peter

Mar 23, 2007 - 12:10 PM
thanks for the info Peter.
I'm surprised that there isn't an equivalent, since I think it works very well with asp.net.
I found the Noogen ValidationProvider control (http://www.codeproject.com/cs/miscctr...) which works more or less as I wanted it to.
I'm surprised that there isn't an equivalent, since I think it works very well with asp.net.
I found the Noogen ValidationProvider control (http://www.codeproject.com/cs/miscctr...) which works more or less as I wanted it to.
Add New Comment