When using my program you can open up a new window that overlays over the main window (which is called Form1). When clicking the button to open the new window the code looks like this (Form1.Enabled = False) so the main window is disabled until closing off that overlay window. However when you have the overlay window open and then switch to another window or program then switch back to my program it shows the main window instead of the overlay window which the main window is disabled meaning it's locked up. My question is how do I get that the overlay window popup in front of the main window after switching to something else and then clicking on the program in the taskbar.

Thanks Jobartley515