Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dikhi - 22 Mar 2006 01:49 GMT
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.
Dmytro Lapshyn [MVP] - 22 Mar 2006 08:51 GMT
Hi.

http://support.microsoft.com/kb/841096/en-us
http://support.microsoft.com/kb/314431/en-us

>I have problem with a control when its causesValidation property is set to
> true.
[quoted text clipped - 37 lines]
>
> Many thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.