Surely there are many options for creating such layout in windows forms. Here I share some good options for Vertical Menu, Center Container and Content Holder.
Vertical Menu
You have many options including these 2 good options:
ToolStrip
component which itsDock
property set toLeft
. Also items of the menu can have images, and you can set to show images before text or above text. You can make one item checked on click and uncheck other items. This way it’s obvious which one is active menu.Panel
control containing someRadioButton
controls. TheDock
property of panel is set toLeft
and it contains someRadionButton
controls which you set itsAppearance
toButton
and itsDock
property of them toTop
. You can set theFlatAppearance
of radio buttons toSystem
orFlat
. Also radio buttons can show images before or above text.
Center Container
You can use a Panel
as container. Set Dock
property of the container panel to Fill
.
Content Holder
Like menu, you have many options including these 2 good options:
-
You can use different
TabPages
of aTabControl
as content holders. Put different contents in different tab of the control. You can hide tab headers and also you can disable shortcut keys which makes navigation between tabs. Then it’s enough to set selected tab of the control based on selected menu. -
You can use different
Form
s as content holders. Put different contents in different forms. Then you can show a form in the content panel based on selected menu. To show a form in content panel, it’s enough to setTopLevel
property of forms to false and setFormBorderStyle
of them toNone
and the add them to center container controls collection and show the form. You can show and hide forms based on selected menu.