1 / 2

Try It!

Try It!. Create a new application called menuExample . Save it in the folder as directed by your teacher. Add a MenuStrip control Properties: Name: mnuMenu Add an entry so that your form matches the image. Properties: Name: mnuChgClr Name: mnuChgBlu Name: mnuChgRed Name: mnuExit.

liko
Download Presentation

Try It!

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Try It! • Create a new application called menuExample. • Save it in the folder as directed by your teacher. • Add a MenuStrip control • Properties:Name: mnuMenu • Add an entry so that your form matches the image. • Properties:Name: mnuChgClrName: mnuChgBluName: mnuChgRedName: mnuExit

  2. Try It! Solution – Visual Basic Public Class Form1 Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click Application.Exit() End Sub Private Sub BlueToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BlueToolStripMenuItem.Click Me.BackColor = Color.Blue End Sub Private Sub RedToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RedToolStripMenuItem.Click Me.BackColor = Color.Red End Sub End Class

More Related