Showing posts with label menu strip. Show all posts
Showing posts with label menu strip. Show all posts

Tuesday, 7 August 2012

menu strip in vb.net

This tutorial will introduce the Menu Strip object for Visual Basic .NET applications.
 Having a Menu Strip will improve the usability of your application and allow you to expand it more.
 Every professional application has a Menu Strip; just take a look at your web browser!
Menu strip look same when you made complex work in it and its easy to use menu strip in vb.net applications.  

Copy and paste below Code:

Public Class Form1

    Private Sub HelpToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles HelpToolStripMenuItem.Click
        MessageBox.Show("this is the help form")
    End Sub

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

End Class

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