Features


Friday, September 19, 2008

How to validate textbox to numeric values only vb.net

This will validate inputed value on the textbox is not a numeric and set it to empty textbox.

If Not (IsNumeric(Me.txtY.Text)) Then
Me.txtY.Text = String.Empty
Me.txtY.Focus()
End If

Hope this will help you to validate you textbox control.

No comments: