Showing a form from another thread

K

kurotsuke

Hi,

I need to show a form from a secondary thread and I'm using the Invoke
method to call the delegate on my form.
I would like to display the form and issuing the command from the
secondary thread. My problem is that the Show seems to do nothing. I
put a breakpoint and it isn't even triggered. On the other hand if the
form is visible I can alter its properties via Invoke.

Any ideas on how to solve it? Is it possibile to display a form from a
secondary thread?
Thanks.
 
A

Ashish Kaila

As far as I can remember correctly forms are meant to be used from the
thread that creates them.
 

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