Add control to another thread

  • Thread starter Thread starter Empi
  • Start date Start date
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
 
OK.

Solved it.
Thanks.

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

Thanks.

Empi
 
Back
Top