469,926 Members | 1,830 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

validation not fireing on button press!

I have a button on the form which has causes validation set to true... when
I click on it not one of my validating events fires on the form... every
single control with it just skips over it and the button executes its
procedure without validation... now when i go to a control then tab off it
the validating event does fire... what in the world is going on here? im
lost... it never acted like this before.... this is VS2008 with .NET 3.5
Jun 27 '08 #1
5 859
Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
>I have a button on the form which has causes validation set to true... when
I click on it not one of my validating events fires on the form... every
single control with it just skips over it and the button executes its
procedure without validation... now when i go to a control then tab off it
the validating event does fire... what in the world is going on here? im
lost... it never acted like this before.... this is VS2008 with .NET 3.5
Jun 27 '08 #2
what do you mean? you never saw it act like i described or thast the way you
think it should work? I always put controls on a form and told the button
click to cause validation and it always fired the validate methods... we've
been doing it that way for years now and never had a problem

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:16**********************************@microsof t.com...
Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
>>I have a button on the form which has causes validation set to true...
when I click on it not one of my validating events fires on the form...
every single control with it just skips over it and the button executes
its procedure without validation... now when i go to a control then tab
off it the validating event does fire... what in the world is going on
here? im lost... it never acted like this before.... this is VS2008 with
.NET 3.5

Jun 27 '08 #3
oops i forgot to say that the buttons validate isnt whats running...
probably made no sense without that... was typing without thinking... if i
click the button its validating event doesnt fire and in that event i call
the validate method on the other controls

"Smokey Grindel" <no****@nospam.comwrote in message
news:uw**************@TK2MSFTNGP05.phx.gbl...
what do you mean? you never saw it act like i described or thast the way
you think it should work? I always put controls on a form and told the
button click to cause validation and it always fired the validate
methods... we've been doing it that way for years now and never had a
problem

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:16**********************************@microsof t.com...
>Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
>>>I have a button on the form which has causes validation set to true...
when I click on it not one of my validating events fires on the form...
every single control with it just skips over it and the button executes
its procedure without validation... now when i go to a control then tab
off it the validating event does fire... what in the world is going on
here? im lost... it never acted like this before.... this is VS2008 with
.NET 3.5


Jun 27 '08 #4
and there lies my problem... i put it in the wrong event ment to put
validatechildren in the click not the validating event... whoops...

"Smokey Grindel" <no****@nospam.comwrote in message
news:uf**************@TK2MSFTNGP04.phx.gbl...
oops i forgot to say that the buttons validate isnt whats running...
probably made no sense without that... was typing without thinking... if i
click the button its validating event doesnt fire and in that event i call
the validate method on the other controls

"Smokey Grindel" <no****@nospam.comwrote in message
news:uw**************@TK2MSFTNGP05.phx.gbl...
>what do you mean? you never saw it act like i described or thast the way
you think it should work? I always put controls on a form and told the
button click to cause validation and it always fired the validate
methods... we've been doing it that way for years now and never had a
problem

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:16**********************************@microso ft.com...
>>Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
I have a button on the form which has causes validation set to true...
when I click on it not one of my validating events fires on the form...
every single control with it just skips over it and the button executes
its procedure without validation... now when i go to a control then tab
off it the validating event does fire... what in the world is going on
here? im lost... it never acted like this before.... this is VS2008 with
.NET 3.5




Jun 27 '08 #5
Yea,

That changes a lot

:-)

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:uf**************@TK2MSFTNGP04.phx.gbl...
oops i forgot to say that the buttons validate isnt whats running...
probably made no sense without that... was typing without thinking... if i
click the button its validating event doesnt fire and in that event i call
the validate method on the other controls

"Smokey Grindel" <no****@nospam.comwrote in message
news:uw**************@TK2MSFTNGP05.phx.gbl...
>what do you mean? you never saw it act like i described or thast the way
you think it should work? I always put controls on a form and told the
button click to cause validation and it always fired the validate
methods... we've been doing it that way for years now and never had a
problem

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:16**********************************@microso ft.com...
>>Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
I have a button on the form which has causes validation set to true...
when I click on it not one of my validating events fires on the form...
every single control with it just skips over it and the button executes
its procedure without validation... now when i go to a control then tab
off it the validating event does fire... what in the world is going on
here? im lost... it never acted like this before.... this is VS2008 with
.NET 3.5



Jun 27 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bilal | last post: by
5 posts views Thread by Micky | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.