B
Bob Cummings
Greetings
I am sure this is a simple question. But I have "googled" it to death
and have only found one answer that involved a bunch of window's API
calls that I did not understand.
I am a student taking VB.NET and we are studying the Validation event
and how to use it on text boxs. I have set the forms.causevalidation
property to false. But if the user has bad data in the text box and
just wants to quit the program by clicking on the control box 'x' on the
upper right corner of the form they are stuck until they correct the
data in the text box. It appears some how the closing event is firing
some sort of validating event. I found a post from Herfried to set the
offending text box's causes validation to false in the form closing
event and that will work the second time the user tries to close the
form but not the first.
I do have the exit button working correctly, but that seems cheesy to me
to not be able to close the form.
Any ideas?
thanks
Bob
I am sure this is a simple question. But I have "googled" it to death
and have only found one answer that involved a bunch of window's API
calls that I did not understand.
I am a student taking VB.NET and we are studying the Validation event
and how to use it on text boxs. I have set the forms.causevalidation
property to false. But if the user has bad data in the text box and
just wants to quit the program by clicking on the control box 'x' on the
upper right corner of the form they are stuck until they correct the
data in the text box. It appears some how the closing event is firing
some sort of validating event. I found a post from Herfried to set the
offending text box's causes validation to false in the form closing
event and that will work the second time the user tries to close the
form but not the first.
I do have the exit button working correctly, but that seems cheesy to me
to not be able to close the form.
Any ideas?
thanks
Bob