I have a treeview alongside a richtextbox (see below)
I wish the user to be able to drag to either widen the treeview and reducing the width of the richtextbox or vice versa, how? I think it has something to do with the splitter control.
Thanks.
Last edited by RealNickyDude; Jan 2nd, 2003 at 02:05 PM.
It sure is the splitter control to use. Try set the dock property of the Treview to "Left", then insert a splitter and even there set the dock property to "Left". Then set the dock property of the RichTextBox to "Fill". That sholud be all I guess.
It all works ok except that the richtextbox fills the form so some of it is hidden behind the treeview and doesn't resize when moving the splitter, also when docked the control overwrites the status bar!
I've tried all sorts of combinations of docking and anchoring, can somebody come to my rescue
Spot on Athley! I didn't use a horizontal splitter but it does work. The problem I had with the richtextbox going behind the treeview was to do with the order of the controls, i just brought the richtextbox to the front and all was ok. One for the VBCodebook me thinks