Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 7th, 2004, 11:24 AM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default MDI Child Form Positioning

I have a MDI form that will have two child forms displayed. The first will be a sort of "menu" displaying a series of buttons on the left. I'd like the second form to butt up against the first form and fill the rest of the space. How do I control the positioning of the child forms within the MDI form? So far the first form displays correctly but regardless of what I try the second form overlaps the first as if it were being tiled.

 
Old December 11th, 2004, 01:56 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I've had a problem like this before. If you do the following it will get round it:

1) Drop a panel control onto your mdi parent form, set the dock property to left and the border to 3d.

2) Drop a splitter control onto your mdi parent form - this will automatically dock to the left.

3) Create your 'menu' form in the left panel, rather than in a separate form.

4) Continue to use your 'main' form as you have been doing.

Once you do this, when you start your application, you'll see that the left window is preserved, and can even be resized through using the splitter.

Hope this gets you where you want to go!



Quote:
quote:Originally posted by BSkelding
 I have a MDI form that will have two child forms displayed. The first will be a sort of "menu" displaying a series of buttons on the left. I'd like the second form to butt up against the first form and fill the rest of the space. How do I control the positioning of the child forms within the MDI form? So far the first form displays correctly but regardless of what I try the second form overlaps the first as if it were being tiled.
The Following User Says Thank You to jaucourt For This Useful Post:





Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying MDI Child Form Menus with MDI Parent ashu_from_india Pro VB 6 3 June 10th, 2008 11:01 PM
Controlling MDI child form from MDI parent panel LuxCoder Pro Visual Basic 2005 1 May 25th, 2007 12:20 PM
Controlling MDI child form from MDI parent panel LuxCoder VB.NET 2002/2003 Basics 7 April 11th, 2007 02:38 PM
Controlling MDI child form from MDI parent panel LuxCoder VB How-To 1 April 9th, 2007 03:25 PM
Controlling MDI child form from MDI parent panel LuxCoder Visual Basic 2005 Basics 2 April 9th, 2007 03:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.