Creating forms in a background thread

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top