30-06-17, 04:20 PM
السلام عليكم ورحمة الله وبركاته
فى حدث KeyPress ضع الكود التالي
If Char.IsDigit(e.KeyChar) Or e.KeyChar = ControlChars.Back Or e.KeyChar = "." Then
e.Handled = False
Else
e.Handled = True
End If
فى حدث KeyPress ضع الكود التالي
If Char.IsDigit(e.KeyChar) Or e.KeyChar = ControlChars.Back Or e.KeyChar = "." Then
e.Handled = False
Else
e.Handled = True
End If
