J
John Baro
How can I create a form on a separate thread?
FormA running on ThreadA
FormB running on ThreadB
TIA
JB
FormA running on ThreadA
FormB running on ThreadB
TIA
JB
John Baro said:How can I create a form on a separate thread?
FormA running on ThreadA
FormB running on ThreadB
John Baro said:I will try App.Run
I want to create a form that will show a progress bar (either traditional
progress or simply a moving gradient) that needs to run on a separate thread
to enable proper UI updating.
The progress bar can be either on a contained timer or updated using
Control.Invoke from the main thread.
After looking at MSDN I cannot see how I can use app.run to run a new form
on a specific thread.
Morten Wennevik said:Wouldn't it be better to put the heavy processing on it's own thread and
keep a single Form for all the GUI stuff? Whenever a value changes or at
certain intervals, notify Form1 in some way and have Form1 update the
progress.
I don't see any reason to restrict the design to a single form (and I'd
never call a class Form1!) but restricting all UI operations to a
single *thread* seems reasonable.