Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
Select Case e.KeyChar
Case "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "."
Case Chr(Keys.Back) '<----- to allow BackSpace
Case Else
e.Handled = True
End Select
End Sub
The above only allows whats shown into the text box..
Need help to accept * as the decimal point. The smartphone calculator does it, by showing an icon and when you press "*" button you get "." in the display.
Any help would be appreciated.