View contents of this chapter

Private Sub mnuBorder3D_Click()
   'Change the border style to fixed single
   lblMenu.BorderStyle = 1
End Sub

Private Sub mnuBorderNone_Click()
   'Change the border style to none
   lblMenu.BorderStyle = 0
End Sub

Private Sub mnuColorRed_Click()
   'Change the background color to red
   lblMenu.BackColor = vbRed
End Sub

Private Sub mnuColorWhite_Click()
   'Change the background color to white
   lblMenu.BackColor = vbWhite
End Sub

Private Sub mnuColorYellow_Click()
   'Change the background color to yellow
   lblMenu.BackColor = vbYellow
End Sub

Private Sub mnuMainExit_Click()
   'terminates the program
   End
End Sub

Private Sub mnuMessageOne_Click()
   'changes the caption of label
   lblMenu.Caption = "A Menu Application"
End Sub

The End statement provides a way to force your program to halt. For normal termination of a Visual Basic program, you should unload all forms.



© Universal Teacher Publications        INDEX Previous Screen Next Screen