I'm trying to port some code over from C# to VB.net and I am having trouble with a simple event handler.
C#:
hook.KeyPressed += new EventHandler<KeyPressedEventArgs>(hook_KeyPressed);
I've written it as such in VB.net:
AddHandler hook.KeyPressed, AddressOf hook_KeyPressed
But my conversion is missing any reference to KeyPressedEventArgs in the C# code and i'm not sure if I'm doing this right. Any help would be appreciated.