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

Validate method of ContainerControl

P: n/a
Let's say a user control has a bunch of textboxes. At some point the user
control calls Validate to make sure all input is processed. The Validating
event is fired, and if the input was invalid, e.Cancel is set to True.

In this case Validate returns True or False correctly, based on whether the
input was acceptable.

But, if Validate is called from the parent form (or a user control that
contains this user control), then the result is always True. Even if
validation failed. The input control itself behaves correctly in this case.
It is
only that Validate always returns True.

How can I get the actual result of the validation, when the Validate method
is called
from up the chain?
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.