Results 1 to 4 of 4

Thread: runing a process simultaneously

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    9

    runing a process simultaneously

    Hi.. i have a simple application which has two sliders, when slided, it will execute a loop.
    my problem is when I slide the other slider(slider2), the slider1 stop its processing and the slider2 starts its processing. is there a possibility that both of them will process when i slide them both..

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Yes it possible, I would suggest to you to do some research on multi-threading in .NET.

  3. #3
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    dimonique, welcome to threading hell,

    Dude when i first looked at threading i shat myself, the first thing it said in my msdn lib was somthing like this
    "threading isnt easy, in fact its the hardest thing your ever do"
    i was like OMG, but in the end it wasnt too bad, the only things i can say is,

    You can only start a thread on a sub, therefore if you wana return soemthing from a function you can use a thread of the function so

    private sub blah()
    'run the function here
    end sub

    also remember dont run excess threads the first thing i went and done was opening threads here there and everywhere...
    BAD IDEA

    if you declare the thread public then it can be access from any part of the application....

    Use intellisense it rocks with threading, if set up correctly

    below is a link to something i just posted take a look your soon work it out


    http://www.vbforums.com/showthread.p...hreadid=289949
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    9
    Guess your right carlblanchard .. i have to thread my self out of this.. i'l keep at it.. its gonna be loco


    thanks..
    God bless

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