I have a program that has multiple forms open at the same time. However, only one is ever enabled at one time. When the second form loads, it disables the first form. When the third form loads it disables the second. Only the main form is shown in the taskbar.
When I switch to another program and then come back, the focus is not on the topmost form. I regain the focus by simply clicking on the form but this can be annoying as I switch between programs regularly.
In short the question is "How can I keep the focus where I left off, even if a different form is shown in the taskbar?"
Thanks in advance!