30-09-23, 06:52 PM
جرب هذا ايصا دون ترك مسافة بين الارقام
PHP كود :
Private Sub TextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles TextBox1.KeyPress
If TextBox1.Text.Length >= 11 Then
If e.KeyChar <> ControlChars.Back Then
e.Handled = True
End If
End If
End Sub

