user interface thread

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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>
 
Back
Top