08-11-21, 04:16 PM
(08-11-21, 04:14 PM)Anas Mahmoud كتب : أضف حدث KeyPress
كود :
Private Sub TextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles TextBox1.KeyPress
e.Handled = Regex.IsMatch(e.KeyChar, "[^\u0621-\u064Aa-zA-Z\s\u0000-\u001f]")
End Sub
هل تريد ان تمنع المستخدم من مسح ماكتبه ؟
اريد اذا كتب حرف خطاء ويريد يمسحه Backspace
