Results 1 to 3 of 3

Thread: Threads in VB

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Does anyone Know how to Create and Manipulate Threads in VB, I've Heard that the IDE Get's a bit Arsey about doing it but creating some multithreaded apps and usercontrols would be really usefull.

    I've Just about get the hang of event,mutexes and thread priorities but there's not a lot you can do with them if you can only run one thread.

    If anyone's tried any thread manipulation in VB Could you please give me some hints on where to start.

    Thanks in advance.

  2. #2
    New Member
    Join Date
    Feb 2000
    Posts
    10

    Multithreading

    Hi,

    Yes, multithreading is possible in VB. But

    1)you will have to use API functions. functions are CreateThread, ResumeThread, SetThreadPriority etc.etc. But you have to be very careful while using these functions. I had tried these working fine. but not that much reliable.

    2) wait for VB7 in which you can directly say.
    Dim MyThread as New Thread.

    3) Use Timer control or SetTimer and KillTimer API Functions.

    Vijay



  3. #3
    New Member
    Join Date
    Feb 2000
    Posts
    10

    Multithreading

    Hi,

    Yes, multithreading is possible in VB. But

    1)you will have to use API functions. functions are CreateThread, ResumeThread, SetThreadPriority etc.etc. But you have to be very careful while using these functions. I had tried these working fine. but not that much reliable.

    2) wait for VB7 in which you can directly say.
    Dim MyThread as New Thread.

    3) Use Timer control or SetTimer and KillTimer API Functions.

    Vijay



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