How use threads?
-
I need load my FORM1 and open my FORM2 While my FORM1 is Working...FORM2 is always On TOP When My FORM2 finish.....FORM2 is closed. (Form1 fill a ListBox (100 lines is an example)) Somebody help me? thanks. my english is bad. :) «« Mexico »»
-
I need load my FORM1 and open my FORM2 While my FORM1 is Working...FORM2 is always On TOP When My FORM2 finish.....FORM2 is closed. (Form1 fill a ListBox (100 lines is an example)) Somebody help me? thanks. my english is bad. :) «« Mexico »»
Help you with what? You haven't explain what part of this you'r having a problem with. And, I don't see anywhere where threading would come into play.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Help you with what? You haven't explain what part of this you'r having a problem with. And, I don't see anywhere where threading would come into play.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008With Thread-1 I want fill the ListBox and with Thread-2 open other WinForm and check when Thread-1 finish the work...... I want that 2 Threads is executing in the same time.... Or give me example for use Threads, multithreading, in same time :)
-
With Thread-1 I want fill the ListBox and with Thread-2 open other WinForm and check when Thread-1 finish the work...... I want that 2 Threads is executing in the same time.... Or give me example for use Threads, multithreading, in same time :)
opening a second form on a second thread is not a good idea. Since you know nothing of threading at all, I'd avoid the topic entirely because there are some hard-to-debug pitfalls with doing this. All UI forms and controls should be created and accessed from the UI thread (startup thread). Accessing controls and forms from non-UI threads involving using delegates and invoking methods so those objects are accessed only from the UI thread. You can find numerous examples with a little Googling. Results for "vb.net threading[^]".
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008