Keeping MDI Child Forms within walls of MDI Parent without Code?

I was wondering if there is a way to prevent MDI Child Forms from moving out of view (being controlled by the user) within the MDI Parent Form without having to write a special function that keeps the Child Form within the boundaries of the MDI Parent?

Thanks
BlakeMcKennaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
Unless they came out with something new in framework 4 (a quick look do not reveal anything), it's not possible. I have searched for that a few years ago, and had to write my own code in the Move event.

The only way you could do that easily with the default mechanisms would be to react to the Resize event of the child to make sure that it is always maximized, which defeats the purpose of MDI.

Look at any standard MDI application, and getting out of the boundaries is the standard, even for big applications such as Word and Excel. It makes sense too if you put yourself in the pants of the user.

MDI is a user's tool, not a programmer's tool. If the user wants to see something at the left side of one form, and something at the right side of another one, he won't be able to do it if you prevent the forms from moving out of view.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BlakeMcKennaAuthor Commented:
That's what I thought and that's what I did...wrote some code to go in the Move Event.

Thank you for the confirmation!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.