Tuesday, 14 February 2012

Menu strip in vb.net?


How to use menu strip in vb.net?
Step1:
Open Microsoft visual studio 2010
Step2:
Open file newàwindows forms application à Rename as you wish
Step3:
Form 1 will load

Drag and drop the menu strip from tool box


Edit like this file, edit, and tools
Click the options and add (edit) your code
Code:
Public Class Form1

    Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
        Close()
    End Sub

    
End Class


Step4:
Output:

Final view