How do you make it so that you can resize a splitter control?
Printable View
How do you make it so that you can resize a splitter control?
As far as I have seen Splitter controls are always docked (not resizable). Setting their dockstyle property with the property editor to none or fill is invalid. Setting it manually results in:
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: A splitter control must be docked left, right, top or bottom.
What exactly are you trying to do?
I want it so that my splitter control can be docked to something(top, bottom, right or left) and so that it can slide back and forth.
If the splitter control is docked to the left then the user would beable to increase or decrease the with of the splitter by clicking and draging their mouse.
I don't understand your problem. That's what Splitter does. You don't have to do anything to it, just drop the first control on your form, set its dockstyle (Splitter only works with docked controls), drop in a splitter, and it will attach itself to the last control added to the form (or if you have a different part of the form selected it will try to figure out where to attach itself).
I figured it out now
Thanks :)