Keyboard Hooking in VB.NET 2003

G

Guest

Hi,

After doing a bit of googling, it seems everyone refers to the article
"Managing Low-Level Keyboard Hooks in VB .NET" Written by Paul Kimmel -
http://www.developer.com/net/net/article.php/11087_2193301_1/

When I implement this in a VB.NET Windows Forms application in Visual Studio
2002, everything works fine - I can hook the keyboard, trap keys, etc.

When I take the same module and place it in my VB.NET Windows Forms
application in Visual Studio 2003, it all falls apart.
I set a breakpoint on the Keyboard Hook, which works fine.
But no matter where I set a breakpoint in the Keytrap, it never seems to get
called, and there's no output as usual in the Output (debug) window.

I've copied the code exactly as written in the article, and also tried
directly copying the code from the known-working VS.NET 2002 project .

Is there something weird going on with my application, or does everyone have
this problem in VS.NET 2003?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top