The KeyDown event doesn't capture from other controls. You've got to set something on the Form_Load event but I can't remember what it was and I'm on my phone. It was: Me.Something = True.
EDIT - It was Me.KeyPreview = True
Hi i have a problem bout hotkeys, I already tried keydown event on form.
it doesn't work this is my code
or this codeif e.keycode = keys.insert then
me.visible = true
else
me.visible = false
end if
Those Code i put On Timer,keyDown Event but now luck!if keys.insert then
me.visible = true
else
me.visible = false
end if
--
I don't want to use GetAsyncKeyState. I hope you know what i mean
The KeyDown event doesn't capture from other controls. You've got to set something on the Form_Load event but I can't remember what it was and I'm on my phone. It was: Me.Something = True.
EDIT - It was Me.KeyPreview = True
Last edited by master131; 09-16-2011 at 09:45 PM.
Set the "KeyPreview" property of your form to "true". All keypress messages will be sent to the form before they are sent to a specific control.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Why aren't you just using GetASyncKeyState, i read your post, and saw you didn't want to, but why? afaik its the easiest way to do et.
Ex-
Previous Names: Leaf, Acinonyx, Fawkes.