IDE: Microsoft Visual Studio Professional 2008
Language: C#
Background: I have one form and two groupboxes that are going to be used as preference catagory groupboxes. My problem is that everytime I drag one groupbox on top of the other (hide/show groupboxes upon listview catagory select), the base groupbox auto-parents the second groupbox I just dragged on top.
Question: How do I stop the two groupboxes from auto-parenting themselves when dragged on top of one another?
// Edit;
Q) I assume you are trying to acheive a layout where you swap out the visible box? –Mitchel Sellers
A) Yes I am. I know I could do it at runtime but I’d like to make that my last option in case there is a more appropriate solution.
You may consider resizing your second GroupBox into position over the first. Drag one side or one corner of the second group box until it covers the first GroupBox and continue to resize the second GroupBox until it is positioned as you desire.
Also available, in the Layout Toolbar, are the alignment and sizing buttons. Select both of your GroupBoxes to enable these options. The GroupBox displaying white grab handles is the one that will remain stationary when you use the alignment and sizing buttons, which include options to "Make Same Size" and "Align Middle".
Furthermore, don’t forget the keyboard right in front of you. The arrow keys will move the selected controls. Try holding various combinations of Ctrl+Alt+Shift while using the arrow keys.