Private Sub txtCost_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtCost.KeyPress If e.KeyChar <> ControlChars.Back Then e.Handled = Not (Char.IsDigit(e.KeyChar) Or e.KeyChar = ".") End If End Sub
e.Handled = Not (Char.IsDigit(e.KeyChar) OR e.KeyChar=".")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)