473,394 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Keyboard Hooking in VB.NET 2003

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/art...087_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?
Nov 21 '05 #1
1 2573
Anyone able to help with this at all?

"William Hughes" wrote:
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/art...087_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?

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Karthik A. | last post by:
Hi, Is there a way to do keyboard hooking in java, if yes can anyone give me the source code? Thanks Karthik
1
by: Greg Merideth | last post by:
Is there a way via c# to hook a system tray application into the windows keyboard que globally so that when the application is running and you press, say, control-alt-shift-f11 the system tray app...
2
by: Fabiano | last post by:
Please, is there a way i can hook the keyboard? I would like to hook everykey. CTRL+ALT+DEL, CTRL+ESC, and all others. The user just press some keys, and none control keys, not only at my app...
0
by: William Hughes | last post by:
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 -...
0
by: Willie jan | last post by:
Hi, i created a control that hooks a keyboard to find out if a specific key is pressed. KeyboardHandle = SetWindowsHookEx(WH_KEYBOARD_LL, callback,...
0
by: BobAchgill | last post by:
When I try to hook a non letter key like left arrow (37) all is OK. If (Hookstruct.vkCode = 37) Or (Hookstruct.vkCode = 83) And CBool(Hookstruct.flags) Then But, for example, the hook for the...
0
by: learner404 | last post by:
Hello, I have a Windows Pyhon-Tk app which need to capture mouse end keyboard events even when the app is not in focus. On Windows so far I've used the excellent PyHook which does the job...
0
by: joemango | last post by:
Hi everyone, I was just reading the following artilce titled: "Spy: A Windows CE API Interceptor" by Dmitri Leman in Dr. Dobbs Journal, September 02, 2003 located at ...
9
by: Kbalz | last post by:
I have an application that minimizes itself, and I want it to listen for certain key commands, and when they are pressed, my program can react to them. So far I've gotten my application to react...
1
by: adam2009 | last post by:
Hey all, I try to find some code that will log to some txt file all the keystrokes in a smartphone. I have read many blogs about it, but I'm still confused. There are two blogs that i tried...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.