Finds out if your program has the focus by using an API.
Finds out if your program has the focus by using an API.
Rate Finds out if your program has the focus by using an API.
(1(1 Vote))
If Focus Then
Me.Caption = "Got Focus"
Else
Me.Caption = "Lost Focus"
End If
End Sub
Function Focus() As Boolean
If GetFocus = 0 Then
Focus = False
Else
Focus = True
End If
End Function
Finds out if your program has the focus by using an API. Comments
No comments yet — be the first to post one!
Post a Comment