Validating event

E

Eric

Is there a way to cancel the validating event on the
closing event?

I have 2 textboxes that I use the validating event to
check for numeric data. If I try to close the form
without putting a number in, it calls the validate event
and pops up my MsgBox.

Thanks!
 
C

Cor

Eric.
Take a look for the keywords cancel validating event on MSDN.
This handles it, but I forgot if it was e.cancel= true or e.cancel=false
take a look what it is in your situation.
I thought it was true.
Cor
 
E

Eric

-----Original Message-----
Eric.
Take a look for the keywords cancel validating event on MSDN.
This handles it, but I forgot if it was e.cancel= true or e.cancel=false
take a look what it is in your situation.
I thought it was true.
Cor


Cor,

The problem is that I also have a closing event. If I am
validating data in a textbox for numeric values, using
IsNumeric, and the text box is empty and I click my exit
button, it is calling that TextBox validating event.
Where would the code go to not call this validating event?
 
C

Cor

Hi Eric
There was a good sollution in this newsgroup from Jeffrey Tan,
Someone cleaned it up.
There stayed another sollution from Jeffrey, describes the problem good, but
gives not such a nice sollution.
After that in a good discussion wherein I was involved a Billy, Jeffrey
changed his sollution to the right one.
That sollution is still partial in this newsgroup on 29-8 too but only some
end thread OT discussion.
I thougth it would stay, so I could find it on Google, but someone has
cleaned it up.
Sorry for you,
I d' nt have it now and d'nt remember it exact and I said to someone to look
something over before, so I do that first.
I placed Jeffreys name in the subject, maybe he sees it and has it still so
he can repost it.
Cor
 
E

Eric

-----Original Message-----
Hi Eric
There was a good sollution in this newsgroup from Jeffrey Tan,
Someone cleaned it up.
There stayed another sollution from Jeffrey, describes the problem good, but
gives not such a nice sollution.
After that in a good discussion wherein I was involved a Billy, Jeffrey
changed his sollution to the right one.
That sollution is still partial in this newsgroup on 29- 8 too but only some
end thread OT discussion.
I thougth it would stay, so I could find it on Google, but someone has
cleaned it up.
Sorry for you,
I d' nt have it now and d'nt remember it exact and I said to someone to look
something over before, so I do that first.
I placed Jeffreys name in the subject, maybe he sees it and has it still so
he can repost it.
Cor


.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top