Quick question. I know that when you design windows, there is a property called TopMost that causes the window to be displayed as the topmost window. How would I cause Dialog Boxes such as the OpenFile dialog box and MessageBox to do the same thing. Right now when I display the OpenFile dialog box and a MessageBox, they are behind my command window. How would I fix that??????
standard message windows (such as a system error box) cannot be top most. I encountered the same problem. There's nothing you can do about it. But that's not where your problem is: think about this: topmost means your window is on the top of the window stack. so you cannot have 2 windows topmost...
In a general manner you want to use topmost only for splash screen, OR very important message boxes. Your application should never have the topmost attribute set.
Plus, topmost windows are extremely polluting on a desktop.
hope that helps
So there is nothing I can do about my messageboxes and open file dialog box poping up in the background. It is annoying because the messagebox will be pop up and I will never know it. There is nothing that can be done about that?????????
no. topmost MEANS topmost.
Like I said, you use topmost for splash screens, status windows or very important message.
Your application window should NEVER use the topmost attribute. It's that simple.