Re: Windows Forms advice

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



A Windows Forms application runs in a Single-Threaded Apartment model, with
a single thread handling the execution of the UI. Any threading you do will
have to be done by non-UI classes. Putting various forms into different
assemblies has no effect on the application, though.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

I had the same problem once. Fixed it using the same solution.

"abhiM" <abhi.menon@xxxxxxxxx> wrote in message
news:1171644320.145803.248930@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
This is a very general question. I am about to embark on
developing a new application (Windows Forms based). All the business
logic, external interfaces etc have already been developed and are
available as ready to use libraries.
This application is going to be multi-threaded. Is it recommended
to have each of the different forms or at least a couple of related
forms packaged into separate libraries. Is such a packaging going to
have any effect on the multi-threaded nature of the application. This
is the first time I am using threading and I need to use threads to
display the status of some of the devices in the system in real time.
Any recommendations and any advice is greatly appreciated.

Thanks,
AM



.



Relevant Pages

  • Re: Details on delivering and managing application
    ... On Thu, 03 Feb 2005 15:47:29 GMT, Wade Humeniuk ... >> It seems some peaple forget how expensive spawning new proceses is ... Under windows process overhead is much higher so if you want to ... The newer Apache 2 uses a threading pool and is much faster. ...
    (comp.lang.lisp)
  • Re: apple mail as a usenet reader?
    ... handling of threading- for example, if you set it for threading ... e-mails it opens each e-mail in a separate window simultaneously. ... own windows rather than viewing them in the message pane below the ...
    (comp.sys.mac.system)
  • Re: user interface fails under UNIX (but works with Windows!)
    ... > A program I am writing, called TimeSleuth and available from ... > same program, however, works when run in Windows. ... Threading is one of the few areas which works ...
    (comp.lang.java.help)
  • Re: Rocket J. Squirrel-- repair registry
    ... I did answer a question about how to reinstall Windows, ... Chkdsk checks your hard disk for logical errors (misconfigurations of the ... file system) and for physical problems on the surface of your hard disk. ... Threading is easy to do: Just use the reply function of your newsreader and ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Can Somebody please explain
    ... Near the bottom it's got some bits about Windows Forms and threading. ... you're receiving callbacks then you'll run into problems displaying stuff - ... I am not able to display any of the messages on ...
    (microsoft.public.dotnet.general)