Results 1 to 3 of 3

Thread: is this multithreading?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    is this multithreading?

    I am trying to do something kina advanced (to me). I want to show a form that runs a loop and changes gradient colors WHILE a process runs in the background of the application. I'm using this form as an indicator that the operation is going on. I can't seem to figure out how to get the code to continue after form.show is executed because control isn't returned ever due to the infinite loop.

    should I look into multithreading or does the answer lie in a 'with events' statement somewhere?

    on a second note, where is a good place to start learning about multithreading?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    That's how multithreading works !!!
    http://www.codeproject.com/csharp/Pr...lashScreen.asp
    And for the tutorials , man what about google !!!
    Last edited by Pirate; Jun 23rd, 2004 at 08:27 PM.

  3. #3
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    Depends on what you are trying to accomplish.
    If you are looking to cause the gradient to change color while the background process is firing then you want to use withevents, if you just want the gradient to cycle until the background process is complete then you probably want to stick with threading.

    Threading in .NET is very VERY simple, this project may well suit your needs if the latter applies:

    DrawBarChart

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