I have an app which has a button that opens a second window and disables the window that opened it.
This works fine, but if I browse away from the app and then click on it again in the task bar the disabled window appears ontop of the new window.
How can I get it to display the correct window when the app is clicked in the task bar.
My code so far is very simple:
Dim window As New Window2