validation not fireing on button press!

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
 
S

Smokey Grindel

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
 
S

Smokey Grindel

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
 
S

Smokey Grindel

and there lies my problem... i put it in the wrong event ment to put
validatechildren in the click not the validating event... whoops...
 
C

Cor Ligthert[MVP]

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
 

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