Reputation: 6455
This is what the option dialog window looks like in Outlook 2010. I wonder how I can create a similar option window with C# WinForm controls.
Looking at it first, I thought it kinda works like TabControl
. But TabControl
doesn't seem to offer Left/Right panel layout.
Then, I thought of SplitContainer
control and could probably take advantage of it, where the left panel could be having a list of menu buttons, and the right panel displaying the option details.
However, here also comes the problems, how can I create menu buttons that look like those in the screenshot then?
Perhaps, there're some existing controls that I am missing. If WinForm doesn't look good here, what else could I try?
Upvotes: 4
Views: 1492
Reputation: 7
Just like alex stated you are on the right track, add a splitcontainer, place the listview in the right and create a new control component for the special Tab (with no header) and place the new Tabcontrol in the left. I particularly like this method of creating this special tab: TabControlNoHeader. It gives you option to enable header or not.
Upvotes: 0
Reputation: 12654
You can use TabControl, hide all of it's tabs. Add a ListView with the tab names to the left and change active tab when list view selection changes.
Upvotes: 1