Windows form as thread

M

MS

Hello,

I'm using a windows form as a thread and I have no idea about how to acces
my form methods after having started the thread.

Actually it's a kind of progress form wich I have to set the progress value.
But once the form started, I have no way to acces it's method
"setProgressValue()" to set the value of the progressBar.

I start the process by System.threading.

Please can you show me the way?

Thanks....
 
H

Herfried K. Wagner [MVP]

MS said:
I'm using a windows form as a thread and I have no idea about how to acces
my form methods after having started the thread.

Actually it's a kind of progress form wich I have to set the progress
value. But once the form started, I have no way to acces it's method
"setProgressValue()" to set the value of the progressBar.

Multithreading in Windows Forms applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=multithreading&lang=en>

.... contains a link to a sample for a threaded progress dialog.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top