I am using C# and WinForms to create UI of my application.
I have main window and dialog, which is shown modal to the main window. Dialog window is not shown in task bar. I go to another application and return back by clicking at the main window task bat icon. I can see locked main window but cannot see dialog unless I select it in Alt-Tab. This is confusing for an application user.
How can I ensure showing modal window in this situation? I can see similar but unfortunately unsolved question http://stackoverflow.com/questions/1158394/alttab-in-vista-activates-main-window-instead-of-previously-active-child-window which regards to Vista (and I have Windows 7).