Resize quastion (Spliter)
-
I am trying to work with the spliter class for my resize controls and i can not get how it works. Can you help me and explain what it does and how it does it? In my project i have 6 controlls that are in the form, i do not use panel,should I? The form is very simple: It has mainmanu and then toolbar and then in each corner of the form there is a controll, i mean it looks like this: mainmanu toolbar treeview lisbox treevew listbox How can i resize it all with the Spliter? Thanks for you help[ :)
-
I am trying to work with the spliter class for my resize controls and i can not get how it works. Can you help me and explain what it does and how it does it? In my project i have 6 controlls that are in the form, i do not use panel,should I? The form is very simple: It has mainmanu and then toolbar and then in each corner of the form there is a controll, i mean it looks like this: mainmanu toolbar treeview lisbox treevew listbox How can i resize it all with the Spliter? Thanks for you help[ :)
You should use panels to do this. You must have at least two panels on your form. If you use VS 2005 than you can simply use SplitContainer control. If not then: 1. Add panel1 to the form and set panel1.Dock = Top. 2. Add splitter1 to the form and set splitter1.Dock = Top. 3. Add panel2 to the form and set panel2.Dock = Fill. 4. Add treeview1 to the panel1 and set treeview1.Dock = Left. 5. Add splitter2 to the panel1 and set splitter2.Dock = Left. 6. Add listbox1 to the panel1 and set listbox1.Dock = Fill. 7. Do steps 4-6 for the panel2.