Messageboxes as MDI children
-
Hi all, My main application form is entirely populated by a tab-based user-interface. Looks nice. Every now and then I need to display warnings, errors or progress windows, for which I use MessageBox or custom progress display forms. The problem I have is that when I minimize my main window or activate a different application from the taskbar, my messagebox or progress window stays on top. 1. I'd like to display progress forms to my main form as MDI children, have tried so, but they don't display. I suspect this is because the mainform is populated with controls already. Suggestions? Example code for the progress window's constructor:
public ProgressWindow()
{
InitializeComponent();
this.MdiParent = Static.FormsPool.GetForm(Formnames.MainForm); // main.IsMdiContainer == true
this.TopMost = true;
}2. The
MessageBox
dialogs should act as mdi children too. As far as I know there's no way to accomplish this, but I sure hope so. Thanks in advance!Standards are great! Everybody should have one!
-
Hi all, My main application form is entirely populated by a tab-based user-interface. Looks nice. Every now and then I need to display warnings, errors or progress windows, for which I use MessageBox or custom progress display forms. The problem I have is that when I minimize my main window or activate a different application from the taskbar, my messagebox or progress window stays on top. 1. I'd like to display progress forms to my main form as MDI children, have tried so, but they don't display. I suspect this is because the mainform is populated with controls already. Suggestions? Example code for the progress window's constructor:
public ProgressWindow()
{
InitializeComponent();
this.MdiParent = Static.FormsPool.GetForm(Formnames.MainForm); // main.IsMdiContainer == true
this.TopMost = true;
}2. The
MessageBox
dialogs should act as mdi children too. As far as I know there's no way to accomplish this, but I sure hope so. Thanks in advance!Standards are great! Everybody should have one!
Bekjong wrote:
2. The MessageBox dialogs should act as mdi children too. As far as I know there's no way to accomplish this, but I sure hope so.
Not using MessageBox maybe but certainly there is if you make your own form for that purpose. I am not advocating your UI design. It sounds very un-user friendly to me. But yes you can do what you would "like" to do.
led mike
-
Bekjong wrote:
2. The MessageBox dialogs should act as mdi children too. As far as I know there's no way to accomplish this, but I sure hope so.
Not using MessageBox maybe but certainly there is if you make your own form for that purpose. I am not advocating your UI design. It sounds very un-user friendly to me. But yes you can do what you would "like" to do.
led mike
led mike wrote:
Not using MessageBox maybe but certainly there is if you make your own form for that purpose.
Well, yes, I figured as much, but that brings me back to question one...
led mike wrote:
t sounds very un-user friendly to me.
What part of it exactly? Many of my users open their webbrowsers to surf around for a bit while waiting for the program to finnish its work. They don't want to be bothered by messageboxes and progress bars popping up until they can be bothered to select the application in the tasbar to check on the status. Thanks for the reply.
Standards are great! Everybody should have one!