Annoying focus problem - solved

The current project I’m working on shows a main Window, and after a few seconds a login Window. The main window has a searchfield that gets the focus. The login window appears behind the main Window (non-visible), although I give it focus. How to overcome this?

OK, I found a way in opening the login Window first… as a workaround, but it should be possible to force windows to front… maybe an API call.

Just call Window.Show, it should bring that window to the front

Unfortunately… it doesn’t. Because the main Window has a textfield with a focus, I think that is… it pops up and immediately disappears behind the main Window.