Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Messageboxes as MDI children

Messageboxes as MDI children

Scheduled Pinned Locked Moved C#
helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bekjong
    wrote on last edited by
    #1

    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!

    L 1 Reply Last reply
    0
    • B Bekjong

      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!

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      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

      B 1 Reply Last reply
      0
      • L 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

        B Offline
        B Offline
        Bekjong
        wrote on last edited by
        #3

        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!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups