Re: Putting a Form on a new thread

Tech-Archive recommends: Fix windows errors by optimizing your registry



"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/>


.



Relevant Pages

  • Re: Multi-thread and datagrid
    ... Multithreading in Windows Forms applications ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Progressbar & Thread activity
    ... Multithreading in Windows Forms applications ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Re: XP standards for windows forms development
    ... >>I am trying to build a Windows forms application based on XP styles. ... > Windows XP - Guidelines for Applications ... > M S Herfried K. Wagner ... Prev by Date: ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Default XP Theme support?
    ... Enabling Windows XP Visual Styles for Windows Forms applications ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)
  • Re: c: tdetect.com keeps disappearing every few hours
    ... > It started happenning a week ago, ... and Windows would not start up. ... No other file disappears. ... and Symantec Systemworks 2003 with Norton Antivirus. ...
    (microsoft.public.windowsxp.security_admin)