Can't cancel the validation when the control lost focus to a userc

G

Guest

I have problem with a control when its causesValidation property is set to
true.

It is actually happens in .NET Framework 1.1.

When I lost focus from this control to another control within a user control
by clicking the target control, I can't really cancel the validating event.

It won't happen if I move the focus to other control within the form, or
within the same container of the source control.

another different behavior when the application is ran in Terminal Server.

+ Steps to Reproduce:
Let say the source control is a textbox and the target control within a
usercontrol is a checkbox. When I click the checkbox, the checked value is
changed and so does the validating event of the source control. So, the focus
remains in the source control, but the target control is excecuted too.
Sample application is in:
http://www.geocities.com/dikhi/downloads/WindowsApplication2.zip

+ Actual Results:
In Windows XP:
The focus remains in the textbox, but the checked value of the checkbox is
changed.

In Terminal Server:
The focus is moved to the target control.

+ Expected Results:
In WIndows XP:
The focus is still in the source control (already correct), but
The target control (checkbox) shouldn't change its checked value.

In Terminal Server:
The same as the Windows XP

Many thanks in advance.
 

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