471,603 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

UserControl Validation

Hi all,

I make a user control that need validation. So before one control is
validated another control cannot focus. but when iam trying to
check/uncheck checkbox and radiobutton, click button with different
usercontrol, these controls can focus and executed. it makes me very
confuse. Need help from all of you guys, how to solve this problem.

I have uploaded my simple program at this link below
http://rapidshare.de/files/13003561/...tion2.rar.html

try to click control in yellow area, compare with control color are.

Thanks in advance
Wirawan


*** Sent via Developersdex http://www.developersdex.com ***
Feb 11 '06 #1
2 2518
> So before one control is validated another control cannot focus.

Do you mean within the UserControl itself, or on the enclosing Form,
from one UserControl to another?

Could you give more details about what your UserControl does? It might
help us give you better information.

Feb 11 '06 #2
Hi Bruce,

Thanks for your response.
Have you seen my simple program?

I add some validation in validating event of textbox control, so when
the text of textbox contain character '.', i give e.Cancel to true so
the focus still in the textbox control. it works when i try to move to
controls in the same parent or on the form. But when i try to move to
another user control, example (in my simple program )where the
background colour is yellow i still can check/uncheck the checkbox.
What i want is before the textbox is valid user cannot execute another
control.

Regards
Wirawan
*** Sent via Developersdex http://www.developersdex.com ***
Feb 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Kate | last post: by
reply views Thread by SDCII | last post: by
reply views Thread by KB | last post: by
4 posts views Thread by Fernando Lopes | last post: by
2 posts views Thread by Eric Maia | last post: by
1 post views Thread by freshRecruit | last post: by
reply views Thread by Arpan | last post: by
reply views Thread by Nariban Barkan | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.