Hi,
Suppose I have thread 1, the main window UI thread and thread 2, a login UI thread that is modal form.
Now thread 1 executes a piece of code and wants to change a UI element in the login form so it invokes a delegate to change something in thread 2. But when it does so, the login form becomes hidden behind the main window and there's no way for me to bring it back. Selecting it on the taskbar doesn't do anything and writing "Activate()" at the end of the invoked method doesn't do anything either.
How can I keep thread 2's UI from becoming hidden?
Thanks