I am implementing this code that is listed on this website...
The code itself is in .NET however his explaination he wrote in C? no idea why, but I need to know how to convert this into .NET
KeyboardHook.KeyDown += new KeyboardHook.KeyDownEventHandler(KeyboardHook_KeyDown);
KeyboardHook.KeyUp += new KeyboardHook.KeyUpEventHandler(KeyboardHook_KeyUp);
KeyboardHook.InstallHook();
I get an error that says "'Public Shared Event KeyDown(vkCode As Integer)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event."
Of course i get this for both the KeyDown and KeyUp version. Can anyone help please?
I've tried doing
AddHandler KeyboardHook.KeyDown, AddressOf KeyboardHook_KeyDown
but it doesn't trigger this whenever the keydown actually happens.