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. Limiting MDI child location

Limiting MDI child location

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

    Hi We have an MDI application, where we would like to limit the possible locations of the MDI child forms. Is it possible to set up some kind of borders that limit child location to some part of the client area? Currently we simply move the form back inside the borders if it dragged outside of the borders. Unfortunately, this has some sideeffects (e.g. client form can be moved far outside the borders before the moved event is raised) BTW: Is it possible to disable the scroll bars that appears on a MDI parent? Thanks, Mads

    A 1 Reply Last reply
    0
    • P phimix

      Hi We have an MDI application, where we would like to limit the possible locations of the MDI child forms. Is it possible to set up some kind of borders that limit child location to some part of the client area? Currently we simply move the form back inside the borders if it dragged outside of the borders. Unfortunately, this has some sideeffects (e.g. client form can be moved far outside the borders before the moved event is raised) BTW: Is it possible to disable the scroll bars that appears on a MDI parent? Thanks, Mads

      A Offline
      A Offline
      Amalorpavanathan Yagulasamy AMAL
      wrote on last edited by
      #2

      Yes, you can fix the Child form location MDI form. You have to set the following properties in Child form Form Location Form Border = none Control box= false MaxBotton=false MinBotton=false Window Startup position=normal Regards, Amal amal_forum@hotmail.com

      P 1 Reply Last reply
      0
      • A Amalorpavanathan Yagulasamy AMAL

        Yes, you can fix the Child form location MDI form. You have to set the following properties in Child form Form Location Form Border = none Control box= false MaxBotton=false MinBotton=false Window Startup position=normal Regards, Amal amal_forum@hotmail.com

        P Offline
        P Offline
        phimix
        wrote on last edited by
        #3

        Thanks for your reply - but wouldn't that make the form unmoveable? What we want is to be able to move the form around within a limited area.

        A 1 Reply Last reply
        0
        • P phimix

          Thanks for your reply - but wouldn't that make the form unmoveable? What we want is to be able to move the form around within a limited area.

          A Offline
          A Offline
          Amalorpavanathan Yagulasamy AMAL
          wrote on last edited by
          #4

          You can set the child form boundry in Child form MOVE event. Regards, Amal amal_forum@hotmail.com

          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