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. How to set modeless form to stay modeless?

How to set modeless form to stay modeless?

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.
  • R Offline
    R Offline
    RYU
    wrote on last edited by
    #1

    Hi, I have 2 forms. One is the main form and another is just a normal form. In the main form, I have two buttons. One is to open modeless form and another is to open modal form (using ShowDialog()). When I clicked the first button, it will show modeless form. However, if I clicked the second button and the modal form is open, the first modeless form can't be access anymore (until the modal form is closed). Any idea how to allow this modeless form to be accessible? Thanks for any help :)

    H 1 Reply Last reply
    0
    • R RYU

      Hi, I have 2 forms. One is the main form and another is just a normal form. In the main form, I have two buttons. One is to open modeless form and another is to open modal form (using ShowDialog()). When I clicked the first button, it will show modeless form. However, if I clicked the second button and the modal form is open, the first modeless form can't be access anymore (until the modal form is closed). Any idea how to allow this modeless form to be accessible? Thanks for any help :)

      H Offline
      H Offline
      Hessam Jalali
      wrote on last edited by
      #2

      Hey That's why they made Modals!!! but if you used your second form as a modalDialog for preventing access to the mainForm. the simplest way to get rid of it (if you don't care your controls going to be Grey) is to use Show instead of show dialog and pass the mainform instance to form (previously was shown as modal) and disable the mainForm then after hiding the dialog enable it again. or http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2192114&SiteID=1[^] Hope its going to help!

      R 1 Reply Last reply
      0
      • H Hessam Jalali

        Hey That's why they made Modals!!! but if you used your second form as a modalDialog for preventing access to the mainForm. the simplest way to get rid of it (if you don't care your controls going to be Grey) is to use Show instead of show dialog and pass the mainform instance to form (previously was shown as modal) and disable the mainForm then after hiding the dialog enable it again. or http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2192114&SiteID=1[^] Hope its going to help!

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

        Thanks Hessam...

        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