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. Visual Basic
  4. [Resolved] How to make a child form stay on the top until closed in mdi application (VB.NET 2005)? [modified]

[Resolved] How to make a child form stay on the top until closed in mdi application (VB.NET 2005)? [modified]

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorialquestion
4 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.
  • R Offline
    R Offline
    rashadaliarshad
    wrote on last edited by
    #1

    Hello friends, I am developing a mdi application. I have a form that takes input from user, and based on user selection , open a form as mdi child. i want the UserSelectionForm to stay on the top of all the other forms including MDI parent and any other mdi child forms until user has made any selection or cancelled the form. any help?

    :- Rashid Ali -:

    modified on Tuesday, February 26, 2008 6:11 PM

    C 1 Reply Last reply
    0
    • R rashadaliarshad

      Hello friends, I am developing a mdi application. I have a form that takes input from user, and based on user selection , open a form as mdi child. i want the UserSelectionForm to stay on the top of all the other forms including MDI parent and any other mdi child forms until user has made any selection or cancelled the form. any help?

      :- Rashid Ali -:

      modified on Tuesday, February 26, 2008 6:11 PM

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I'm not sure I follow which forms are popups and which are embedded in the MDI app. But, to keep a child form open, set it's parent/owner to be the form you want it to always be above, usually the main form of the app.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      R 1 Reply Last reply
      0
      • C Christian Graus

        I'm not sure I follow which forms are popups and which are embedded in the MDI app. But, to keep a child form open, set it's parent/owner to be the form you want it to always be above, usually the main form of the app.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        R Offline
        R Offline
        rashadaliarshad
        wrote on last edited by
        #3

        When you go to show the form use: form.ShowDialog(); instead of: form.Show(); ShowDialog tells .net to open the form as a modal dialog instead of a standard form. here is the Solution i got from some other forum

        :- Rashid Ali -:

        C 1 Reply Last reply
        0
        • R rashadaliarshad

          When you go to show the form use: form.ShowDialog(); instead of: form.Show(); ShowDialog tells .net to open the form as a modal dialog instead of a standard form. here is the Solution i got from some other forum

          :- Rashid Ali -:

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Oh - I didn't tell you that, because you didn't post code, so I couldn't understand that this was the problem. Glad you got it sorted.

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          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