articles

Home / DeveloperSection / Articles / Menu Strip Control in VB.Net

Menu Strip Control in VB.Net

Menu Strip Control in VB.Net

John Smith 20140 14-Dec-2010

MenuStrip provides a menu system for a form.

Creating MenuStrip Control

Drag and drop MenuStrip control from the toolbox on the window Form.

Menu Strip Control in VB.Net

Menu Strip Control in VB.Net

Insert text in the MenuStrip which you want to display as the menu.

Menu Strip Control in VB.Net

 

Menu Strip Control in VB.Net

 When you click the database then the database menu will open and when the mouse is over the Programming language then Programming language menu will open.

Menu Strip Control in VB.Net

Positioning a MenuStrip: we can set the Position of MenuStrip through Dock property

Private Sub Form31_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Positioning a MenuStrip to left
        MenuStrip1.Dock = DockStyle.Left
End Sub

 

Menu Strip Control in VB.Net

MenuStrip properties 

GripStyle:  Gets or sets the visibility of the grip used to reposition the control. 

GripMargin : Gets or sets the space around the ToolStrip move handle.

The AutoSize: Where the Gets or sets a value indicating whether the control is automatically resized to display its entire contents.

The AllowMerge: Here Gets or sets a value indicating whether multiple MenuStrip can be combined.


Updated 04-Mar-2020
I am best.

Leave Comment

Comments

Liked By