اذهب الي المحتوي
أوفيسنا

كيفية التحكم بمفاتيح وازرار الكي بورد KeyBoard


الردود الموصى بها

  • 2 months later...

السلام عليكم

الاخوة في المنتدى

مفتاح page down - page up جننـي :@

ولم استطع ان امنع أو اعطل هذان المفتاحان من استعراض السجلات في طريقة عرض النماذج

فكيف السبيل الى ذلك

ارجو المساعدة وشكراً لكم سلفاً

رابط هذا التعليق
شارك

استخدم الكود التالي

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

    ' for more information, see the Access Help topic: KeyPress Event
    ' values 8, 9, 10, and 13 convert to backspace, tab, linefeed, and carriage return characters, respectively.
    
    Select Case KeyCode
        Case 33, 34
        'If KeyCode is PAGEUP or PAGEDOWN then nullify them
            KeyCode = 0
    End Select
    
End Sub


Private Sub Form_Load()
    Me.KeyPreview = True
End Sub

تم تعديل بواسطه امير عاطف
رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information