|
-
Aug 31st, 2002, 05:30 AM
#1
Thread Starter
Addicted Member
Threading?
In a project with several forms, when some data in one form was changed it is necessary to update another form. Se when the first form closes, the form #2 makes visible and reads some data from a database. For couple of seconds the form window not fully repainted until all data was read. I think that I need to put the process of reading the data from a database into a separate thread, while the second form state changes to visible. So far I have never used threading, so I would appreciate any advice how to implement it.
Thanks
-
Sep 2nd, 2002, 08:59 PM
#2
PowerPoster
It's pretty easy. My advise would be in the constructor, after the initialize call, create a new thread and let that get the data. This free's your form to paint itself and such.
Here is a link to maybe get you started:
http://msdn.microsoft.com/library/de...eThreading.asp
-
Sep 3rd, 2002, 03:59 AM
#3
Thread Starter
Addicted Member
Thanks for the link, hellswraith.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|