peterpanes
New member
- Joined
- Sep 21, 2006
- Messages
- 2
- Programming Experience
- Beginner
Hello, Please Help.
I’m writing a program that needs to have several threads running simultaneously, the number of threads that will be running will be stored in a database so I need to be able to create new threads dynamically at runtime. I need to pass a different IP address to each thread/backgroundworker each time i use it. Each thread will do the same thing but with a different IP address.
The problem is that i cant seem to create and run new instances of the background worker dynamically, I can put the background worker into a form and then create new instances of the form dynamically, but then I have to hide the forms and stuff and I want to avoid this and do it properly if possible. Does anyone know how to do this, I’m assuming it is possible to create a new instances of the backgroundworker at run time, or something, I’m not sure.
I have not used VB for 5 years so I cant remember much and all this dot net stuff is completely new to me.
Any help is much appreciated, Thanks
I’m writing a program that needs to have several threads running simultaneously, the number of threads that will be running will be stored in a database so I need to be able to create new threads dynamically at runtime. I need to pass a different IP address to each thread/backgroundworker each time i use it. Each thread will do the same thing but with a different IP address.
The problem is that i cant seem to create and run new instances of the background worker dynamically, I can put the background worker into a form and then create new instances of the form dynamically, but then I have to hide the forms and stuff and I want to avoid this and do it properly if possible. Does anyone know how to do this, I’m assuming it is possible to create a new instances of the backgroundworker at run time, or something, I’m not sure.
I have not used VB for 5 years so I cant remember much and all this dot net stuff is completely new to me.
Any help is much appreciated, Thanks