Quote Originally Posted by wysota View Post
If you do that your app will crash.
I also have the same idea, only one thread should be the graphical thread. So how can I solve the problem:

inactive window (hidden) takes the focus instead of the one that is shown the first time? After just a click the shown window it will regain focus and work.
Thanks
Ramiro