|
-
Sep 4th, 2007, 10:39 AM
#1
Thread Starter
Frenzied Member
[2.0] VB6 to C#
How does this if statement translate to C# (I dont get the And &H8000 )
Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Long) As Integer
Private Sub Timer1_Timer()
Dim keystate(1) As Integer
keystate(0) = GetAsyncKeyState(vbKeyControl)
keystate(1) = GetAsyncKeyState(vbKeyTab)
If keystate(0) And keystate(1) And &H8000 Then
'If hotkey is pressed
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|