UserControl - Validated Event not firing

S

Simon Verona

I'm confused!

I have a usercontrol which is basically an extension of the textbox - it is
hosted in the user control because there are other controls held on the
usercontrol as well.

I have code that I've put in the mybase.validated event that validates data
and does other work. This should run as the user exits the usercontrol (ie
tabs out of the textbox or clicks on another control). 99.9% of the time
it does, but in some circumstances this event doesn't fire. This isn't
random, but is reproduceable - but I can't work out why.

Does anybody have any pointers as to why the validated event on a
usercontrol would not be fired on exiting the control or perhaps have some
other thought?

This is on vb.net 2003/Framework 1.1.

Thanks in advance

Simon
 
T

Truong Hong Thi

Simon,
Does anybody have any pointers as to why the validated event on a
usercontrol would not be fired on exiting the control or perhaps have some
other thought?
The control' CauseValidation property can affect Validating and
Validated event.

Thi - http://thith.blogspot.com
 

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