Results 1 to 8 of 8

Thread: How Do I Multi-Thread?

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2008
    Posts
    23

    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
  •  



Click Here to Expand Forum to Full Width