Limiting MDI child location
-
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
-
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
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
-
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
-
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.
You can set the child form boundry in Child form MOVE event. Regards, Amal amal_forum@hotmail.com