C textbox1 validating
In my windows form projects , i have validated the fields using Boolean method.
Find the below sample screen shot for validating the fields before saving the data Img 3: Validation method Here I have validated the fields using the Boolean method, If all the field values are entered properly it will return true, other wise it will return false and will display an error message.
I want to make sure that the users enter integer numbers before I save it to the database.
Thanks, Alpha Hi, I have a window based applicaton.Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange In a Win Form I'm doing initial validation in the Form. To make the code short only three fields are shown in the code. I do not specifically have to have a reference to the method itself, especially as there could be more than one, just a way to cause the Validating event to be raised and have it call all relevant methods. Validate() method can cause the validation on the last invalidated control to be re-attempted, then there must be some kind of interface to allow this access.