473,396 Members | 1,879 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,396 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 2574
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.