تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] عند الضغط على زر F11 يحدث امر :)
#4
PHP كود :
   Private Sub TextBox1_KeyDown(sender As ObjectAs KeyEventArgsHandles TextBox1.KeyDown
        If e
.KeyCode Keys.F11 Then
            MsgBox
("F11 key pressd ")
 
       End If
 
   End Sub 

PHP كود :
Public Sub FuncKeysModule(ByVal value As Keys)
 
       'Check what function key is in a pressed state, and then perform the corresponding action.
        Select Case value
            Case Keys.F1
                '
Add the code for the function key F1 here.
 
               MessageBox.Show("F1 pressed")
 
           Case Keys.F2
                
'Add the code for the function key F2 here.
                MessageBox.Show("F2 pressed")
            Case Keys.F3
                '
Add the code for the function key F3 here.
 
               MessageBox.Show("F3 pressed")
 
           Case Keys.F4
                
'Add the code for the function key F4 here.
                MessageBox.Show("F4 pressed")
            Case Keys.F5
                '
Add the code for the function key F5 here.
 
               MessageBox.Show("F5 pressed")
 
           Case Keys.F6
                
'Add the code for the function key F6 here.
                MessageBox.Show("F6 pressed")
            Case Keys.F7
                '
Add the code for the function key F7 here.
 
               MessageBox.Show("F7 pressed")
 
           Case Keys.F8
                
'Add the code for the function key F8 here.
                MessageBox.Show("F8 pressed")
            Case Keys.F9
                '
Add the code for the function key F9 here.
 
               MessageBox.Show("F9 pressed")
 
           Case Keys.F10
                
'Add the code for the function key F10 here.
                MessageBox.Show("F10 pressed")
            Case Keys.F11
                '
Add the code for the function key F11 here.
 
               MessageBox.Show("F11 pressed")
 
           Case Keys.F12
                
'Add the code for the key F12 here
                MessageBox.Show("F12 pressed")
            Case Keys.Enter
                MessageBox.Show("Enter pressed")
        End Select
    End Sub

 
    Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown
        If e.KeyValue = Keys.F1 Or Keys.F2 Or Keys.F3 Or Keys.F4 Or Keys.F5 Or Keys.F6 Or Keys.F7 Or Keys.F8 Or Keys.F9 Or Keys.F10 Or Keys.F11 Or Keys.F12 Or Keys.Enter Then
            FuncKeysModule(e.KeyValue)
            e.Handled = True
        End If
    End Sub 

الرد }}}


الردود في هذا الموضوع
RE: عند الضغط على زر F11 يحدث امر :) - بواسطة Rabeea Qbaha - 14-09-19, 04:04 AM

المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  أريد كود عند الضغط على الصورة في PictureBox تفتح في برنامج الصور في الويندوز F.H.M 6 645 25-10-24, 01:57 PM
آخر رد: F.H.M
  عند الضغط على زر Cancel يظهر لي رسالة خطأ F.H.M 11 1,113 25-10-24, 06:39 AM
آخر رد: F.H.M
  [سؤال] تنفيذ عدة أوامر مختلفة في خلية DGV عند الضغط بعدة أزرار Mohamd Mercy To TheWorlds 0 276 10-09-24, 08:26 AM
آخر رد: Mohamd Mercy To TheWorlds
  كيف يمكنني الضغط على DataGridView_CellFormatting عبر Button1 moh61 1 401 27-06-24, 12:48 AM
آخر رد: asmarsou
  تنفيذ أمر عند الضغط على أى زر من الكيبورد heem1986 1 369 12-06-24, 05:57 PM
آخر رد: تركي الحلواني
  [سؤال] حول ظهور النافذة الاولى عند الضغط على Menustrip2 في النافذة الثانية vb.net 2012 mh66 0 472 19-10-23, 09:05 AM
آخر رد: mh66
  اريد كود لمسح النص من textbox بمجرد الضغط على ال textebox للكتابة رهف العريفي 21 13,359 03-06-23, 04:56 AM
آخر رد: سعود
  هل يحدث هذا معكم ابو محمد محمد محمد 0 375 15-05-23, 12:20 AM
آخر رد: ابو محمد محمد محمد
  تنفيذ الكود عند الضغط على checkbox الموجود في الداتاقريدفيو جيولوجي مبتدئ 1 1,350 29-09-22, 09:55 AM
آخر رد: mohamedassim
Question [VB.NET] استفسار حول طريقة الضغط على زر برمجيا lmofallis 4 4,188 01-06-22, 12:02 PM
آخر رد: عبد الجليل سراج

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


يقوم بقرائة الموضوع: