Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How use threads?

How use threads?

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Orlando_Herrera
    wrote on last edited by
    #1

    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 »»

    D 1 Reply Last reply
    0
    • O Orlando_Herrera

      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 »»

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      O 1 Reply Last reply
      0
      • D Dave Kreskowiak

        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

        O Offline
        O Offline
        Orlando_Herrera
        wrote on last edited by
        #3

        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 :)

        D 1 Reply Last reply
        0
        • O Orlando_Herrera

          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 :)

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups