Untitled
Anonymous
plain_text
07/04/2023 2:59 AM
552 B
14
Indexable
Public Class Form1
Private Sub btnDisplay_Click(sender As Object, e As EventArgs) Handles btnDisplay.Click
Dim inputNumber As Integer
If Integer.TryParse(txtNumber.Text, inputNumber) Then
lblOutput.Text = "You input: " & inputNumber.ToString()
Else
MessageBox.Show("Invalid input. Please enter a valid integer.")
End If
End Sub
End Class
Editor is loading...