I am trying to per textchanged in a textbox call an isnumeric function. I cant seem to get it to work.
function:
[ Private Function IsNumericCheck(ByVal CheckVal As String) As String
'check for numeric values and return boolean
If IsNumeric(CheckVal) = False Then
Return False
Else
Return True
End If
End Function]
text changed
[Private Sub tHeight_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tHeight.TextChanged
'set variable
CheckVal = tHeight.Text
'call isnumeric function
IsNumericCheck(CheckVal)
If False Then
MessageBox.Show("Only Enter Nunmeric Values")
End If
End Sub]