Adding Custom Menu in Windows Forms Application

In this article, we'll show how to add menus to your forms in a Windows Application. Most users are familiar with Menu Bars and they use standard menus such as File, Edit, and Help that are in their applications. Here, we will see how to create a custom Dropdown menu in a Windows Application that looks like:

Multi-Menu-in-windows-app.jpg

So let's have a look at a practical example of how to create a "Menu" in a Windows Application. 

So start a new project by clicking "File" -> "New" -> "Project..." from the menu at the top of Visual C#. Create a new Windows Application project. Call it anything you like. When your new form appears, you can add a Menu Bar quite easily.

Now drag and drop a ToolStrip control onto the form.

Toolstrip-control-in-windows-app1.jpg

Now select a ToolStrip control and press F4 to show the Property window. The Property Window looks like:

Toolstrip-control-property-in-windows-app.jpg

Now select the Items collection property from the above window and select Button from the select item.

Toolstrip-control-items-property-in-windows-app.jpg

Now  you can customize the image, Text Property and click on the item collection to add a dropdown menu.

Toolstrip-control-items-property-in-windows-app2.jpg

After selecting the property click on the "Ok" button to see the menu.

Menul-in-windows-app.jpg

Now click on the Home to see the dropdown menu.

Menul-with-dropdown-in-windows-app.jpg

Similarly we can add more menu items.

Multi-Menu-in-windows-app1.jpg

 

Up Next
    Ebook Download
    View all
    Learn
    View all