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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Multi Forms Application

Multi Forms Application

Scheduled Pinned Locked Moved C#
question
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.
  • V Offline
    V Offline
    vhassan
    wrote on last edited by
    #1

    Hi everyone. I want to make an application that has one Main Window Form. From this main form I want to open new forms. Each newly opened form is showed in Taskbar and can be individually closed. But I want main window form to be Owner of all newly opened form. In the above case I want single instance of Main Form running as an application and if i close the main form all other opened forms should be closed. I cannot used this.AddOwnedForms(newForm) because there are few restrictions of minimize and focusing main form. What is best way to achieve this functionality? Thanks. Good Day.

    M 1 Reply Last reply
    0
    • V vhassan

      Hi everyone. I want to make an application that has one Main Window Form. From this main form I want to open new forms. Each newly opened form is showed in Taskbar and can be individually closed. But I want main window form to be Owner of all newly opened form. In the above case I want single instance of Main Form running as an application and if i close the main form all other opened forms should be closed. I cannot used this.AddOwnedForms(newForm) because there are few restrictions of minimize and focusing main form. What is best way to achieve this functionality? Thanks. Good Day.

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      Just create and show all your 'child forms' inside your main form and you should automatically get all the functionality you have asked for

      Life goes very fast. Tomorrow, today is already yesterday.

      V 1 Reply Last reply
      0
      • M musefan

        Just create and show all your 'child forms' inside your main form and you should automatically get all the functionality you have asked for

        Life goes very fast. Tomorrow, today is already yesterday.

        V Offline
        V Offline
        vhassan
        wrote on last edited by
        #3

        Thank you for reply. I want Main Form as a separate window. Not like MDI container. Is that possible to have Main Form invoking new windows and works as parent to all new windows?

        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