Add control to another thread

E

Empi

Hi.

I just developed a class that suppose to replace the MessageBox.Show.

It create a panel with some additional elements (image/buttons/labels etc).
I'm looking for the best way to add the panel to the calling form.

I also have to handle different thread calls (thread I is calling me, and I
suppose to add the panel to the Gui thread).

What is the best and nicest way of doing this?

Thakns,


Empi
 
E

Empi

OK.

Solved it.
Thanks.

Thread 1 "signal" the gui thread by setting a global parameter.

Thanks.

Empi
 

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