تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
طلب كودين
#1
السـلام عليكم روحمة الله وبركاته

أحتاج كود تعطيل جميع الطريق لأغلاق فورم 
وأحتاج كود تلكست بكس يكتب أنقليزي فقط حروف وأرقام
الرد }}}
تم الشكر بواسطة:
#2
1
PHP كود :
Private Sub Form1_FormClosing(sender As ObjectAs FormClosingEventArgsHandles Me.FormClosing
    e
.Cancel True
End Sub 

2
PHP كود :
' for KeyPress
'
Private Sub TextBox1_KeyPress(sender As ObjectAs KeyPressEventArgsHandles TextBox1.KeyPress
    Dim eng 
As Boolean System.Text.RegularExpressions.Regex.IsMatch(e.KeyChar"[0-9a-zA-Z\s]")
 
   If Not (Char.IsControl(e.KeyChar) Or engThen e.Handled True
End Sub
' for Paste
'
Private Sub TextBox1_TextChanged(sender As ObjectAs EventArgsHandles TextBox1.TextChanged
    Dim chk 
As Boolean System.Text.RegularExpressions.Regex.IsMatch(sender.Text"[^0-9a-zA-Z\s]")
 
   If chk Then
        sender
.Text System.Text.RegularExpressions.Regex.Replace(sender.Text"[^0-9a-zA-Z\s]""")
 
   End If
End Sub 

PHP كود :
0-numbers
a
-small letters
A
-capital letters
\space 
الرد }}}
تم الشكر بواسطة: adel27
#3
شـكراً لك وبارك الله فيك 


الأكواد تعمل لكن احتاج تعطيل أي شي بحيث أن الفورم لا يتم أقفله
ALT+CTRL+DELETE 
WINDOSE+D
 مثل هذه الأختصارات RAN
الرد }}}
تم الشكر بواسطة:


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم