TabControl question
-
I am trying to find an existing control or find out how to make a custom one that allows me to have either a listbox or treeview on the left instead of a tabstrip at the top. This is how it is done in both the VS2008 Options and Word 2007 Options and I really like it, but after searching all morning I haven't really made any progress. I have started writing custom controls to try and combine a treeview with a tabcontrol, but haven't made much progress. So, I will just start with this: Does anyone know of a tabcontrol that will show the tabs in a list or tree? Thanks in advance
-
I am trying to find an existing control or find out how to make a custom one that allows me to have either a listbox or treeview on the left instead of a tabstrip at the top. This is how it is done in both the VS2008 Options and Word 2007 Options and I really like it, but after searching all morning I haven't really made any progress. I have started writing custom controls to try and combine a treeview with a tabcontrol, but haven't made much progress. So, I will just start with this: Does anyone know of a tabcontrol that will show the tabs in a list or tree? Thanks in advance
I don't know if there's an existing one but you can simply use a SplitContainer, in the left side add a TreeView, in the right side add some Panels and in NodeMouseClick event call related Panel.
While (true) { Human.isLearnable = true; }
-
I don't know if there's an existing one but you can simply use a SplitContainer, in the left side add a TreeView, in the right side add some Panels and in NodeMouseClick event call related Panel.
While (true) { Human.isLearnable = true; }
Thanks for replying. I have considered this, but feel that working with multiple layered panels in the designer is messy at best and it just feels like there must be a better solution. Since posting the question I have tried what I want to do in WPF and it is very easy so I may just go with that, but if anyone has any other ideas, I would be glad to hear them.
-
Thanks for replying. I have considered this, but feel that working with multiple layered panels in the designer is messy at best and it just feels like there must be a better solution. Since posting the question I have tried what I want to do in WPF and it is very easy so I may just go with that, but if anyone has any other ideas, I would be glad to hear them.
aalex675 wrote:
feel that working with multiple layered panels in the designer is messy
Agreed, but sounds messy or not, you have Controls (Buttons, TextBoxes, etc.) and you have to add them in your Form in anyway.
aalex675 wrote:
if anyone has any other ideas
Add the Controls in Run-Time.
While (true) { Human.isLearnable = true; }