PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
MDI with threads (parallel work)
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
MDI with threads (parallel work)
![]() |
MDI with threads (parallel work) |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
actually I have a childform, which runs a self-written script interpreter (runs aprox. 1 min). I want to create more child-forms and I want to have the interpreters run parallel. Right now only the interpreter of the last created form is running until it is finished and then the other ones are continuing. How can I make parallel working child-forms bye Mike |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi Mike,
This is the third post with this message - which one do you want the responses in? I suggest that the original thread is the best place. Regards, Fergus |
|
|
|
#3 |
|
Guest
Posts: n/a
|
"MIchael Ullrich" <michaelu@gmx.de> schrieb
> actually I have a childform, which runs a self-written script > interpreter (runs aprox. 1 min). > I want to create more child-forms and I want to have the > interpreters run parallel. > Right now only the interpreter of the last created form is running > until it is finished and then the other ones are continuing. > > How can I make parallel working child-forms Please stay in the other thread you started. The child Forms don't have to be *created* in separate threads, but you can create one child *for* each thread. Despite, each thread must marshal the UI tasks to the main thread, i.e. to the thread that created the Forms. -- Armin http://learn.to/quote http://www.plig.net/nnq/nquote.html |
|
|
|
#4 |
|
Guest
Posts: n/a
|
* michaelu@gmx.de (MIchael Ullrich) scripsit:
> actually I have a childform, which runs a self-written script > interpreter (runs aprox. 1 min). > I want to create more child-forms and I want to have the interpreters > run parallel. > Right now only the interpreter of the last created form is running > until it is finished and then the other ones are continuing. > > How can I make parallel working child-forms You will have to create the child forms in the main UI thread and communicate with them from whe worker threads using invoking techniques. More information: <http://www.devx.com/dotnet/Article/11358> -- Herfried K. Wagner MVP · VB Classic, VB.NET <http://www.mvps.org/dotnet> <http://www.plig.net/nnq/nquote.html> |
|
|
|
#5 |
|
Guest
Posts: n/a
|
Hi,
how can I create a thread for a Child-Form? Imports System.Threading Public Class Form1 Inherits System.Windows.Forms.Form Private cID_Handler As New f_ID_Handler() Private cIDHandlerThread As Thread Private Sub Form1_Load(... cIDHandlerThread = New Thread(AddressOf cID_Handler) cIDHandlerThread.Start() ... but this does not work. Do You have a good example? Bye Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
|
|
#6 |
|
Guest
Posts: n/a
|
Hi, I understand nothing. The link is dead. Can You send me an other link or example please. Bye Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

