validation not fireing on button press!

  • Thread starter Thread starter Smokey Grindel
  • Start date Start date
S

Smokey Grindel

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
 
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
 
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
 
and there lies my problem... i put it in the wrong event ment to put
validatechildren in the click not the validating event... whoops...
 
Yea,

That changes a lot

:-)

Cor

Smokey Grindel said:
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
 
Back
Top