replicate tools->options menu in visual studio

Posted on 2004-11-04
Medium Priority
Last Modified: 2011-09-20
I would like to replicate the tools->options menu found in Visual studio that has a treeview control on the left, and the various fields for each selection on the right. The type of control seems to be more and more popular, replacing the ugly tab control used in lots of products like Microsoft Word and Excel.

That is just a treeview control on the left, correct? And what type of control is used on the right? Is that just a series of panels. And when you click on a node of the treeview, the panel on the right is activated? I'd like to know how this is most easily managed at design time.

Here is a screenshot of the Options menu I am talking about that is used in Visual Studio.

Question by:brokeMyLegBiking
  • 3
LVL 19

Expert Comment

ID: 12501598
Say you have 5 Items in the tree view
For each of them place a panel on the right side and the panel will contain all the controls, make these panels Ivisible initially

On the event AfterSelect of the Treeview check the text of the Node selected and correspondingly make the Particular Panel visible

LVL 25

Expert Comment

ID: 12502003
On the left is indeed a standard treeview, Although I wouldn't go for the invisible option, i would build the right side dynamically. Just put one panel on the right side and on the Node selected build the right side.

Author Comment

ID: 12503257
Does it take up less memory if you build the controls dynamically? Is it slower? How can I get a sense of what the control layout will look like, in advance?

LVL 25

Accepted Solution

RonaldBiemans earned 2000 total points
ID: 12503306
Yes, It will make use of the resources more effiently because it will only load the ones that need to be shown. Especially if your treeview has a lot of items.

If there aren't that many controls to be shown (less than 50) you will not know the difference in fact it will be faster than with the invisible option because there all the controls of all the items in the treeview will have to be loaded.

About the layout, what I usually do is make a trial version in the designer to get a general feel of what I want it to look like.
and than translate that in the code, you probably will have to do that only once to get an idea and that create the rest from that. And than just run your program and see how it looks, usually only small adjustment have to made after that.

LVL 25

Expert Comment

ID: 12503316
With less that 50, I mean less that 50 per item

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question