|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can't cancel the validation when the control lost focus to a userctrue. 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. Hi.
http://support.microsoft.com/kb/841096/en-us http://support.microsoft.com/kb/314431/en-us Show quote "Dikhi" <Di***@discussions.microsoft.com> wrote in message news:20FFA660-4900-493B-814F-EAF228DBB5DB@microsoft.com... >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. |
|||||||||||||||||||||||