Technical Training
VB.NET 2005Working with Menu Controls
Creating Menu and Menu Items
In this tutorial we will learn about Creating Menu and Menu Items - Main Menu, Context Menu, StatusBar and ToolBar.
Main Menu
Windows users are familiar with Menu objects. The MainMenu control represents the container for the menu structure of the form. Menus are made up of MenuItem objects that represent the individual parts of a menu. You can add submenus to menus that will pop up when the user clicks an arrow in the menu item, display check marks, create menu separators, assign shortcut keys to menu items , even draw the appearance of menu items yourself.
MenuItems in a MDI application work in a special way. When an MDI child window appears, its menu is merged with the MDI parent window. You can also specify how this menu is to be added to the MDI parent window with the MergeOrder and MergeType properties.
Context Menu
Another popular type of menu is the context menu. The context menus are invoked by right clicking on another control. We can use context menus to display menus that will be specific for that control. You can achieve this by setting the ContextMenu property of the control with the name of the menu created separately.
StatusBar
A StatusBar is usually seen at the bottom of the window and they provide the user with some additional information-- such as-- the page number they are editing. You can also add panels to the status bar so that different groups of information are shown in different parts of the bar. The ShowPanels property enables you to determine if the panels will be shown or not.
ToolBar
Toolbars are seen below the menus and are full of buttons. The buttons that appear in the tool bar can appear in many ways depending upon the options chosen. They can appear as standard push buttons, toggle buttons, drop-down buttons that can display a drop down menu and buttons that display images.
Toolbars are usually docked along the top of its parent Window. They can actually docked to any side of the window. Toolbars can display tool tips when the user points the mouse pointer at a toolbar button. The toolbars allow the users to access the most often used options to be grouped displayed dynamically depending up on the control that is currently active.
VB.NET 2005
- VB.NET 2005 Free Training
- The .NET Framework Architecture Part 1
- The .NET Framework Architecture Part 2
- Application Class and Message Class
- Implementing Class Library Object
- Visual Studio.NET Namespaces
- .NET Assemblies
- Differences between VB.NET 1.0 and VB.NET 2.0
- Introducing VB.NET Windows Forms
- Visual Studio Windows Forms Designer
- Exploring the Forms Designer generated code
- Setting and Adding Properties to Windows Form
- Implementing Inheritance
- Event Handling In Visual Basic .NET
- Building Graphical Interface elements
- .NET Common Windows Forms Controls Part 1
- .NET Common Windows Forms Controls Part 2
- Common Controls and Handling Control Events
- DomainUpDown and NumericUpDown Controls
- Dialog Boxes in Visual Basic .NET
- Visual Studio Adding Controls to Windows Form
- VB.NET Validation Controls
- Working with Menu Controls
- VB.NET MDI Applications
- .NET Exceptions
- VB.NET Creating and Managing Components Part 1
- VB.NET Creating and Managing Components Part 2
- Simple Data Binding
- .NET Complex Data Binding
- .NET Data Form Wizard
- Data Manipulation with ADO.NET
- SQL Server Stored Procedures
- SQL Server Ad Hoc Queries
- Finding and Sorting Data in DataSets
- ADO.NET Object Model
- Working with DataSets
- Using XML Data
- Working with File System in .NET
- Creating Web Service
- Instantiating - Invoking Web Services, Creating Proxy Classes with WSDL
- Web Reference and Web Services
- Web Services - SOAP, WSDL, Disco and UDDI
- Web Application Testing in VB.NET 2005
- Web Application Tracing and Debugging
- Working with Legacy Code and COM Components
- ActiveX Controls and Legacy Code
- Windows Application Testing
- VB.NET Windows Application Testing
- Tracing VB.NET Windows Application
- Debugging Windows Applications In Visual Studio.NET 2005
- Deploying Windows Applications In Visual Studio.NET 2005
- Customizing Setup Project in Visual Studio.NET 2005
- Shared Assembly
- Microsoft .NET Creating Installation Components
- The Registry Editor in Visual Studio.NET 2005
- The File Types Editor







