code exer4 form1

Public Class Form1

Private Sub btnPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlay.Click
If txtName.Text = “” Or txtPass.Text = “” Then
MsgBox(“Please enter your user name!”)
Else
Me.Hide()
Form2.Show()
End If
Form2.Text = “welcome ” & ” ” & Me.txtName.Text & ” ” & ” to whats the word!”
Form2.lblWelcome.Text = Me.txtName.Text & ” ” & “Get ready to test your niddle-skills! Press Play to begin the game!”
End Sub

Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
Me.Close()
End Sub
End Class

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.