As maybe you know after some code with SendKeys your NumLock will be disabled...
I try this function
and this code at the end of the sendkeys code, at the end of current event and on code of the common used button after the problem:
but a lot of times if fail... :/
any help?
PS: I'm working how to avoid use of SendKeys but 3 lvl of navicationform on a subform is not that simple...
I try this function
Code:
Public Declare PtrSafe Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Long
Function numlockcheck()
numlockcheck = GetKeyState(vbKeyNumlock)
End Function
and this code at the end of the sendkeys code, at the end of current event and on code of the common used button after the problem:
Code:
If numlockcheck() = 0 Then
SendKeys "{NUMLOCK}", True
End If
any help?
PS: I'm working how to avoid use of SendKeys but 3 lvl of navicationform on a subform is not that simple...