Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
414 B
0
Indexable
Never
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