Vb.Net Form Reload following Click Event
Posted on 2003-11-04
How can I reload a VB.Net form following a click event? The click event is a "Clear" event, using the NullChar value to clear text, etc., from all input text boxes. During data input my program validates the input to make sure it's either text or a numeric value. Right now, if I insert the a text value in a text box that is only to get numeric input an error message pops up (which is what I want it to do). However, to erase my errant input, if I click the "Clear" button the input is cleared but using the same instance of the form will precludes my input validation from working. In other words, if I use the clear button to clear bad input data and I retype bad data back in, my data validation doesn't work. If the form is reinitialized or reloaded, the validation works. So, inorder to be able to validate input I need to reload the form with my "Clear" event handler. How can this be done and what is the best way to do it?