|
-
Jan 27th, 2009, 01:28 AM
#1
Thread Starter
Junior Member
How Do I Multi-Thread?
I have a GUI that calls a module's Sub Main(), which contains a System.Threading.Thread.Sleep. While the thread is sleeping, the GUI is unresponsive. Is there a way to have the module sleep, but keep the GUI responsive? Any help would be greatly appreciated.
UPDATE:
I found some code on the internet for multi-threading, and I used it in my program. However, there is a problem. The module is supposed to appendText to a richTextBox in my GUI, but it's not. Any ideas why?
This is the code I used
Code:
Dim oThread As System.Threading.Thread
oThread = New Thread(AddressOf Console.Main)
oThread.Start()
Any help would be greatly appreciated.
Last edited by 5te4lthX; Jan 27th, 2009 at 01:34 AM.
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
|