Visual Studio 2005.
I converted part of my source code in C #.
However, when I took a snapshot of the code below, I noticed that I do not have an IsNumber method.
Why isnumber missing? I wanted to use it so that I could force the user to enter only numbers.
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If e.KeyChar.IsNumber(e.KeyChar) = False Then
e.Handled = True
End If
End Sub
Thanks so much for any suggestions,
source
share