M
Mike
Hi,
In one of my winforms I am validating a textbox making sure it was filled
out and that the data is numeric and setting e.Cancel = true if not.
Everything works fine however the form has a OK and Cancel button. I do not
want the user be able to submit the form if the data is not correct (which
works fine by setting e.Cancel = true) however I want to the user to be able
to hit cancel and which closes the form. Right now by setting e.Cancel =
true does not allow me to close the form. But if do not use e.Cancel = true
then the user will be able to submit wrong data. Is there a way to get
around this?
Thanks
In one of my winforms I am validating a textbox making sure it was filled
out and that the data is numeric and setting e.Cancel = true if not.
Everything works fine however the form has a OK and Cancel button. I do not
want the user be able to submit the form if the data is not correct (which
works fine by setting e.Cancel = true) however I want to the user to be able
to hit cancel and which closes the form. Right now by setting e.Cancel =
true does not allow me to close the form. But if do not use e.Cancel = true
then the user will be able to submit wrong data. Is there a way to get
around this?
Thanks