Re: Putting a Form on a new thread
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Fri, 6 May 2005 23:15:41 +0200
"Brandon Owensby" <123@xxxxxxx> schrieb:
If I try to start my form on a new thread it doesn't stay up. You see it appear on the screen but then it disappears after just a second or so. How do you go about putting a form on another thread without that happening?
Create all forms in the main UI thread and use 'Control.Invoke'/'Control.BeginInvoke' to access them from a worker thread:
Multithreading in Windows Forms applications <URL:http://dotnet.mvps.org/dotnet/faqs/?id=multithreading&lang=en>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
.
- Follow-Ups:
- Re: Putting a Form on a new thread
- From: Hauer Wolfgang
- Re: Putting a Form on a new thread
- Prev by Date: Multiple bindingcontext on winform
- Next by Date: Re: Closing a form programatically which was opened with ShowDIalog
- Previous by thread: Re: Putting a Form on a new thread
- Next by thread: Re: Putting a Form on a new thread
- Index(es):
Relevant Pages
|