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.

form not refreshing when clicked

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rich - 12 Oct 2004 13:03 GMT
Hello All,

I have a windows application where I am running a bit of code in a module
and updating a multi-lined textbox control on a form for each line of code
executed.

example:
purged old records
adding new records
updating tables with new record information
etc.

This is working well except for when I click on the form, the form will
appear to freeze and new actions are not written to the text control.  In
debug the textbox is being updated, it is just not displaying.  Once the
process has completed the form seems to refresh and all of the text is
displayed.

I have tried using form.refresh, textbox.refresh, form.update,
textbox.update, and the form.active all with the same results.  I am
developing in .net 2003 and running windows XP.

Thank you,

Rich
Sijin Joseph - 13 Oct 2004 05:15 GMT
Try adding a Application.DoEvents() call after updating the textbox.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> Hello All,
>
[quoted text clipped - 21 lines]
>
> Rich

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.