Modal Dialog Behavior Problem
-
Hi, I have a few forms in my project and I am opening them one after another like this: Password Entry Form Save File Dialog A selection form with a few buttons on it to select output display. -These 3 windows do not have a parent form and they are not related to each other. -They are not displayed at the same time. As I said I open them in the given order, one after the previous form is closed. -I open all of them using ShowDialog() method. My problem is: I have tried many settings but the last form keeps opening in background and does not have focus. So the user cannot see the window at top. I have tried setting TopMost property, but the result is the same. I am trying to set all these forms to be displayed at top when they are opened. I think I have a problem in understanding the behavior of Windows while handling these Modal dialogs. Can anyone suggest me a link to learn this behavior or an example that may lead to solution of my problem? Thank you,
Always keep the Murphy Rules in mind!