user interface thread

G

Guest

In my windows form (VB.Net), I have a lengthy operation and a Stop button
that allows the user to stop the operation. However, the Stop button will be
available only after the operation is finished. The operation involves
subs/functions from serveral classes, and I have problems to make it a
thread. So can I start a thread that watches the Stop button and handles the
click event.
Thanks
 
H

Herfried K. Wagner [MVP]

John said:
In my windows form (VB.Net), I have a lengthy operation and a Stop button
that allows the user to stop the operation. However, the Stop button will
be
available only after the operation is finished. The operation involves
subs/functions from serveral classes, and I have problems to make it a
thread. So can I start a thread that watches the Stop button and handles
the
click event.

The last two links on the page referenced below will implement this feature:

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

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