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 / General / March 2008

Tip: Looking for answers? Try searching our database.

TextBox4_ChangedText

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Richards - 04 Mar 2008 19:37 GMT
Hello. Using XP Pro w/SP4 and VS 2003.
Is it normal for this procedure to run before I have even seen the
Form1? I can write code to work-around this.
I believe that what it is doing is as soon as TextBox4 is initialized, it is
detecting the text in the TextBox4.Text property (which is TextBox4) as a
changed text so it runs the TextBox4_ChangedText proceedure.
Will appreciate any explanation on this and have a good day, Jim
Mr. Arnold - 04 Mar 2008 20:18 GMT
> Hello. Using XP Pro w/SP4 and VS 2003.
> Is it normal for this procedure to run before I have even seen the
[quoted text clipped - 4 lines]
> changed text so it runs the TextBox4_ChangedText proceedure.
> Will appreciate any explanation on this and have a good day, Jim

The event is going to firer anytime you address the textbox, even during the
load of the form. It could be a case that you must load a textbox during the
Form_Load  with data.

In any case, you must set a flag at Form_Load like bFormLoad = true and set
bFormLoad = false after the Form_Load.

Then when the Textbox_Changed event firers doing the Form_Load when
addressing the Textbox, if bFormLoad = true, then you bypass the code in the
event. Then after Form_Load when you set bFormLoad = false, you are safe to
execute the code in the event, because the user entered data in the Textbox,
after the Form_Load.

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.