Creating forms in a background thread

  • Thread starter Thread starter Jimmy Dodd
  • Start date Start date
J

Jimmy Dodd

To improve the responsiveness of my .NET CF app I am trying to create a
secondary form in a worker thread (using WaitCallback and ThreadPool). The
secondary form is referenced as a member of the primary form. After the
secondary form is created I notice that many of the controls on that form
are still null referenced, and the code seems to hang when trying to access
them.

Is there a problem creating forms and other UI controls in worker threads
and then using them from the main thread?

Thanks,
Jimmy
 
Back
Top