Practice Exercise 1
Welcome to Visual Basic
'-----------------------------------------------------------------------------------------------------------
' Student Name
' Program Name
' Class Name
' Due Date
'
' Program Description
' This program is designed to display and hide a text message on the
' form.
'-----------------------------------------------------------------------------------------------------------

Public
Class Form1

     '---------------------------------------------------------------------
     ' When the show button is clicked this section sets the visible
     ' property of lblWelcome to True.
     '---------------------------------------------------------------------
     Private Sub cmdShow_Click(ByVal sender As System.Object, _
                                              ByVal
e As System.EventArgs) Handles
cmdShow.Click
          lblWelcome.Visible =
True
     End
Sub

     '---------------------------------------------------------------------
     ' When the show button is clicked this section sets the visible
     ' property of lblWelcome to False.
     '---------------------------------------------------------------------
     Private Sub cmdHide_Click(ByVal sender As System.Object, _
                                            ByVal
e As System.EventArgs) Handles
cmdHide.Click
          lblWelcome.Visible =
False
     End
Sub
End
Class