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 / Windows Forms / WinForm General / October 2004

Tip: Looking for answers? Try searching our database.

Validating Event Firing at Design Time????

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Saunders - 13 Oct 2004 22:00 GMT
I'm adding a bunch of Validating events to my form, and find that the
Validating event of a TextBox is firing. This particular TextBox is within a
tab page, if that matters at all.

How do I either prevent this event from firing, or else how should my code
detect that it's design time? TextBox.Site is null, so I can't check
TextBox.Site.DesignMode.

This is VS2003, .NET 1.1 without SP1.

-----
John Saunders
Stoitcho Goutsev \(100\) [C# MVP] - 14 Oct 2004 01:19 GMT
Hi John,

AFAIK TextBox's Site shouldn't be null unless you create it dynamically.
There are property DesignMoode, but it is also based on the conponent's
site. You can try to check text box parent sites or even the form site
property

Signature

Stoitcho Goutsev (100) [C# MVP]

> I'm adding a bunch of Validating events to my form, and find that the
> Validating event of a TextBox is firing. This particular TextBox is within
[quoted text clipped - 8 lines]
> -----
> John Saunders

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.