Video Lectures‎ > ‎

ContextMenuStrip, or Right click menu (in Urdu)

How to use, how to show rightclick menu, or ContextMenuStrip in Visual Basic 2010, 08 and .NET
How to use, how to show rightclick menu, or ContextMenuStrip in Visual Basic 2010, 08 and .NET
The Video is in English and Urdu!
Same coding can run Visual Basic 2008
1. Open Visual Basic 2010 or 2008
2. Click new Project in file menu
3. Draw a contextmenustrip on form, add two buttons and sub-buttons
3b. Select the form then in properties window select contextmenustrip1 in contextmenustrip property.
4. Enter coding
Public Class Form1

   
    Private Sub NameToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NameToolStripMenuItem.Click
        MsgBox("Mujhay aap ka naam nahi pata")
    End Sub

    Private Sub AddressToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddressToolStripMenuItem.Click
        MsgBox("Mujhay aap ka address nahi pata")
    End Sub

    Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
        MsgBox("bhai save kia karon")
    End Sub
End Class

5. Run your Program
Comments