By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,558 Members | 1,673 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,558 IT Pros & Developers. It's quick & easy.

Validating event

P: n/a
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!
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
Nov 20 '05 #2

P: n/a
-----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=falsetake 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?

Nov 20 '05 #3

P: n/a
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
Nov 20 '05 #4

P: n/a
-----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, butgives not such a nice sollution.
After that in a good discussion wherein I was involved a Billy, Jeffreychanged his sollution to the right one.
That sollution is still partial in this newsgroup on 29- 8 too but only someend thread OT discussion.
I thougth it would stay, so I could find it on Google, but someone hascleaned it up.
Sorry for you,
I d' nt have it now and d'nt remember it exact and I said to someone to looksomething over before, so I do that first.
I placed Jeffreys name in the subject, maybe he sees it and has it still sohe can repost it.
Cor
.
Thanks

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.