Insert Label into the project.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim str As String
str = InputBox$("Enter Name", "InputBox")
If str = "" Then
Label1.Text = "Guest"
Else
Label1.Text = str
End If
End Sub
No comments:
Post a Comment