467,911 Members | 1,429 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,911 developers. It's quick & easy.

class for handling the key strike event

a
Hi
For VB .NET, which class is responsible for the key strike event?
Thanks

Aug 28 '06 #1
  • viewed: 1842
Share:
10 Replies
Can you give us some more information, if I Google for this I get all kind
of wars, if I look this up in Wikepedia I get as well the keys in Florida?
On MSDN I get a lot about key and some things about strike.

Cor

"a" <a@mail.comschreef in bericht
news:Ox**************@TK2MSFTNGP06.phx.gbl...
Hi
For VB .NET, which class is responsible for the key strike event?
Thanks

Aug 28 '06 #2
a
For example, when I hit the keyboard at the time I am typing this message,
the application knows which character I have hit. It is the event handling
procedure doing the job. I would like to use the event class for my
application.

Thanks

"Cor Ligthert [MVP]" <no************@planet.nl撰寫於郵件新聞
:uG**************@TK2MSFTNGP05.phx.gbl...
Can you give us some more information, if I Google for this I get all kind
of wars, if I look this up in Wikepedia I get as well the keys in Florida?
On MSDN I get a lot about key and some things about strike.

Cor

"a" <a@mail.comschreef in bericht
news:Ox**************@TK2MSFTNGP06.phx.gbl...
Hi
For VB .NET, which class is responsible for the key strike event?
Thanks




Aug 28 '06 #3
a which application, your application can get the keydowns, and keys up
inside this application, however I have the idea that you want that as it is
in some spyware to registrate all keystrokes somebody does, am I right?

Cor

"a" <a@mail.comschreef in bericht
news:Oc**************@TK2MSFTNGP06.phx.gbl...
For example, when I hit the keyboard at the time I am typing this message,
the application knows which character I have hit. It is the event handling
procedure doing the job. I would like to use the event class for my
application.

Thanks

"Cor Ligthert [MVP]" <no************@planet.nl撰寫於郵件新聞
:uG**************@TK2MSFTNGP05.phx.gbl...
>Can you give us some more information, if I Google for this I get all
kind
of wars, if I look this up in Wikepedia I get as well the keys in
Florida?
On MSDN I get a lot about key and some things about strike.

Cor

"a" <a@mail.comschreef in bericht
news:Ox**************@TK2MSFTNGP06.phx.gbl...
Hi
For VB .NET, which class is responsible for the key strike event?
Thanks




Aug 28 '06 #4
a
Hi
You are half right, I am creating password recovery tool for myself.
I dont trust the freeware outside.
In C++ for Win98, there is a class called GetAsyncKeyState.
What is it for VB .NET?

Thanks

"Cor Ligthert [MVP]" <no************@planet.nl撰寫於郵件新聞
:OM**************@TK2MSFTNGP05.phx.gbl...
a which application, your application can get the keydowns, and keys up
inside this application, however I have the idea that you want that as it
is
in some spyware to registrate all keystrokes somebody does, am I right?

Cor

"a" <a@mail.comschreef in bericht
news:Oc**************@TK2MSFTNGP06.phx.gbl...
For example, when I hit the keyboard at the time I am typing this
message,
the application knows which character I have hit. It is the event
handling
procedure doing the job. I would like to use the event class for my
application.

Thanks

"Cor Ligthert [MVP]" <no************@planet.nl撰寫於郵件新聞
:uG**************@TK2MSFTNGP05.phx.gbl...
Can you give us some more information, if I Google for this I get all
kind
of wars, if I look this up in Wikepedia I get as well the keys in
Florida?
On MSDN I get a lot about key and some things about strike.

Cor

"a" <a@mail.comschreef in bericht
news:Ox**************@TK2MSFTNGP06.phx.gbl...
Hi
For VB .NET, which class is responsible for the key strike event?
Thanks





Aug 28 '06 #5
"a" <a@mail.comschrieb im Newsbeitrag
news:Ox**************@TK2MSFTNGP06.phx.gbl...
Hi
For VB .NET, which class is responsible for the key strike event?
What does "key strike" mean?

You may want to check out the form's/control's 'KeyPress', 'KeyDown', and
'KeyUp' events and the form's 'KeyPreview' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Aug 28 '06 #6
a
Hi
I want it from the system resources.
Like, if I install my application as the service.
I want to keep track of all the Keydown, no matter which application, Word,
IE or Excel is active.
Just like the GetAsyncKeyState for C++ in Win 9X.
Thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.at>
???????:%2****************@TK2MSFTNGP04.phx.gbl...
"a" <a@mail.comschrieb im Newsbeitrag
news:Ox**************@TK2MSFTNGP06.phx.gbl...
Hi
For VB .NET, which class is responsible for the key strike event?

What does "key strike" mean?

You may want to check out the form's/control's 'KeyPress', 'KeyDown', and
'KeyUp' events and the form's 'KeyPreview' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Aug 28 '06 #7
"a" <a@mail.comschrieb:
I want it from the system resources.
Like, if I install my application as the service.
I want to keep track of all the Keydown, no matter which application,
Word,
IE or Excel is active.
Just like the GetAsyncKeyState for C++ in Win 9X.
You can still use 'GetAsyncKeyState':

<URL:http://dotnet.mvps.org/dotnet/faqs/?id=getkeystate&lang=en>

Alternatively you'll may want to install a system-wide Win32 keyboard hook.
However, note that it's maybe better to implement the hooking code in C for
determined runtime behavior.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Aug 28 '06 #8
a
Hi
How come my .NET reference book doesnt mention this feature? Should I look
for books called something like Win32 programming for WinXP?
Thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.at>
???????:u3**************@TK2MSFTNGP06.phx.gbl...
"a" <a@mail.comschrieb:
I want it from the system resources.
Like, if I install my application as the service.
I want to keep track of all the Keydown, no matter which application,
Word,
IE or Excel is active.
Just like the GetAsyncKeyState for C++ in Win 9X.

You can still use 'GetAsyncKeyState':

<URL:http://dotnet.mvps.org/dotnet/faqs/?id=getkeystate&lang=en>

Alternatively you'll may want to install a system-wide Win32 keyboard
hook.
However, note that it's maybe better to implement the hooking code in C
for
determined runtime behavior.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Aug 29 '06 #9
"a" <a@mail.comschrieb:
How come my .NET reference book doesnt mention this feature? Should I look
for books called something like Win32 programming for WinXP?
Look for keywords like "Win32", "platform invoke", "p/invoke" or similar in
the books' descriptions.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Aug 29 '06 #10
"a" wrote:
Hi
I want it from the system resources.
Like, if I install my application as the service.
I want to keep track of all the Keydown, no matter which application, Word,
IE or Excel is active.
Just like the GetAsyncKeyState for C++ in Win 9X.
You need to install a WH_KEYBOARD_LL hook to monitor key events across all
applications. There are no native .NET functions that will do this for you.
You will need to use pinvoke to access the appropriate Win32 and User32
functions.

We offer a component that will do this for you:

http://www.mini-tools.com/goto/input

--
Timm Martin
Mini-Tools
..NET Components and Windows Software
http://www.mini-tools.com

Sep 1 '06 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Steven T. Hatton | last post: by
4 posts views Thread by darrel | last post: by
8 posts views Thread by SStory | last post: by
2 posts views Thread by Fred Zuckerman | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.