تمام استاذي لكني استخدم Keypress مسبقا وقد وضعت فيه الكود
Dim KeyAscii As Short = Asc(eventArgs.KeyChar)
If KeyAscii = 13 Then
Button7.Focus()
End If
وظيفته الانتقال لخانة اخرى عند الضغط على زر الانتر
وبعد اضافة كودك اول اصبح الكود الكامل في Keypress
Dim KeyAscii As Short = Asc(eventArgs.KeyChar)
If KeyAscii = 13 Then
Button7.Focus()
End If
If (e.KeyChar < "0" OrElse e.KeyChar > "9") AndAlso e.KeyChar <> ControlChars.Back AndAlso e.KeyChar <> "." AndAlso e.KeyChar <> "," Then
e.Handled = True
End If
عندها ظهر الخطأ
Dim KeyAscii As Short = Asc(eventArgs.KeyChar)
If KeyAscii = 13 Then
Button7.Focus()
End If
وظيفته الانتقال لخانة اخرى عند الضغط على زر الانتر
وبعد اضافة كودك اول اصبح الكود الكامل في Keypress
Dim KeyAscii As Short = Asc(eventArgs.KeyChar)
If KeyAscii = 13 Then
Button7.Focus()
End If
If (e.KeyChar < "0" OrElse e.KeyChar > "9") AndAlso e.KeyChar <> ControlChars.Back AndAlso e.KeyChar <> "." AndAlso e.KeyChar <> "," Then
e.Handled = True
End If
عندها ظهر الخطأ
