Tab and enter key not function in application. Have to use mouse only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fizyu
    New Member
    • Jul 2010
    • 1

    Tab and enter key not function in application. Have to use mouse only

    Hi,

    First of all, i have successfully install my application in Windows 7 and it run correctly, which means i can use tab or enter key to move to the next control.
    After a week, it suddenly cannot focus from one control to another either by press on tab key on enter key. I always have to click to get focus. Can somebody help me regarding this issue?

    I use the code below in my application to move to onether control when enter key is pressed.

    Code:
    Public Sub EnterAsTab(KeyAscii As Integer)
        If KeyAscii = 13 Then 
           keybd_event VK_TAB, 0, 0, 0 'send a tab
           KeyAscii = 0    
        End If
    end sub
  • irfanafzal
    New Member
    • May 2010
    • 12

    #2
    Tab and enter key not function in application. Have to use mouse only Reply to Thread

    Try this code


    If KeyAscii = 13 Then
    SendKeys "{Tab}"
    KeyAscii = 0
    End If

    Comment

    Working...