473,387 Members | 1,512 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,387 software developers and data experts.

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
10 1996
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¼¶¼g©ó¶l¥ó·s»D
: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¼¶¼g©ó¶l¥ó·s»D
: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¼¶¼g©ó¶l¥ó·s»D
: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¼¶¼g©ó¶l¥ó·s»D
: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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Steven T. Hatton | last post by:
The following may strike many of you as just plain silly, but it represents the kind of delelima I find myself in when trying to make a design decision. This really is a toy project written for...
18
by: Elder Hyde | last post by:
Hey all, A class of mine needs to tell the outside world when its buffer is not empty. The problem is that C# seems to force you to put the event-raising code in the base class. To illustrate,...
10
by: Opa | last post by:
I have tried for two days to solve this problem with no luck. I have a singleton class which has some events declared. When I inherit from this class the events don't seem to come along with it....
0
by: Sam | last post by:
Hi, I have a class that receives a DataGrid control and populates it. However, I need to do an OnItemCreated event because if I'm missing data in a certain column, I display a HyperLink control...
4
by: darrel | last post by:
In the context of VB.net, when/why would one use a 'friend class'. I'm finding lots of references to friend classes on google, but not a simle definition of what they actually are. Actually, if...
6
by: Max | last post by:
Last time I tried to explain this on another forum it didn't go too well, so I'll try my best and if you know what I'm talking about then please tell me how to do this. I have a class, inside I...
8
by: SStory | last post by:
When I right a class, I am wondering what are the best practices for error handling? Do I try..catch and trap the error and if so what do I do with it? Because most likely the class user will...
3
by: johncee | last post by:
Greetings, I created a base class that has a datagrid. I've made it generic as possible so that any derived classes pass some info to the base constructor (including a SQL select stmt) &...
2
by: Fred Zuckerman | last post by:
It appears to me that "strike out" is not a font (I wonder why?). Anyway, I have a report that has some detail lines that are not relevant. However I still want them to show. So I'd like to have...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
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
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...

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.