私は次のコードを持っています:
Private Sub TxtPStof_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TxtPStof.KeyPress
e.Handled = Not (Char.IsDigit(e.KeyChar) Or e.KeyChar = ".")
End Sub
数字と。のみを許可します。ただし、テキストボックスでは、バックスペースまたは削除ボタンを使用して値を削除できる必要があります。
これは可能ですか?
ありがとう!:)