Search This Blog

Saturday, November 20, 2010

Tutorial 10

10. Menu Strip


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! I used a Tool Strip in this tutorial by accident but just ignore that and use a Menu Strip object instead.



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

No comments:

Post a Comment