how to use splitter control ?
-
Drag and drop it from toolbox on your form
#region signature my articles #endregion
-
Drag and drop it from toolbox on your form
#region signature my articles #endregion
-
1. Drop the control you want on the left hand side on the form, and dock it left. 2. Drop the splitter control on your form (it will dock to the left automatically). 3. Drop the control you want on the right hand side on the form, and dock it fill. That should be it.
- S 50 cups of coffee and you know it's on!
-
You set it's properties just like you would with any other control. Is this .NET 2.0? If so, you automatically get two panels (a left and right, by default) that you can then drop other controls onto. If it's earlier than .NET 2.0, you need to drop a panel on the form, drop the splitter control, and then drop another panel. If I remember correctly, the splitter will automatically dock left...if not you will need to set the dock properties by hand. After that, you just drop controls onto the respective panels.
----------------------------- In just two days, tomorrow will be yesterday.
-
There are actually 2 different controls that provide similar functionality. There is the 'legacy' splitter control that is the same as the previous versions of visual studio. You have to drop a panel, then the splitter, then another panel. The better control, IMO, is the SplitContainer. This shows up with a default left and right panels already configured. You can change the orientation so it is top and bottom. It is a container control so you can drop pretty much whatever you want inside of the contained panels. You'll most likely want to set the minimum sizes for the panels (property names will be Panel1MinSize and Panel2MinSize. This will keep the user from shrinking them too far. I hope that helps a little.
Pete