Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to recognize function keys?

0 views
Skip to first unread message

Helmut Giese

unread,
Nov 20, 2009, 9:42:55 AM11/20/09
to
Hello out there,
I need to react to function keys but cannot find any hint in the
online help. There is an entry which talks of e.KeyValue ('e' being
the event), but this must be for a different version than VS 2005.

Anybody kind enough to tell me?
Best regards
Helmut Giese

Mr. Arnold

unread,
Nov 20, 2009, 9:59:44 AM11/20/09
to

Jeff Johnson

unread,
Nov 20, 2009, 11:05:21 AM11/20/09
to
"Helmut Giese" <hgi...@ratiosoft.com> wrote in message
news:oiadg55ke4lsbcoi1...@4ax.com...

> I need to react to function keys but cannot find any hint in the
> online help. There is an entry which talks of e.KeyValue ('e' being
> the event), but this must be for a different version than VS 2005.
>
> Anybody kind enough to tell me?

You'll only get them in the KeyDown/KeyUp methods, NOT the KeyPress method.
Does that help?


Helmut Giese

unread,
Nov 20, 2009, 12:12:07 PM11/20/09
to
On Fri, 20 Nov 2009 11:05:21 -0500, "Jeff Johnson" <i....@enough.spam>
wrote:

Immediately - and makes me feel a bit silly. Why didn't I think of
this possibility?
Thanks and best regards
Helmut Giese

Helmut Giese

unread,
Nov 20, 2009, 12:13:13 PM11/20/09
to
On Fri, 20 Nov 2009 09:59:44 -0500, "Mr. Arnold" <Arn...@Arnold.com>
wrote:

Thanks for the link - 'keydown' is the 'key word' so to say.
Best regards
Helmut Giese

Jeff Johnson

unread,
Nov 20, 2009, 1:29:06 PM11/20/09
to
"Helmut Giese" <hgi...@ratiosoft.com> wrote in message
news:6bjdg5dgs374t46i8...@4ax.com...

>>You'll only get them in the KeyDown/KeyUp methods, NOT the KeyPress
>>method.
>>Does that help?
> Immediately - and makes me feel a bit silly. Why didn't I think of
> this possibility?

It's not silly at all. I rather think it's silly that you DON'T get them in
KeyPress. They ARE keys, after all. But someone decided a long time ago to
associate the WM_CHAR Windows message with an event called KeyPress (instead
of, say, KeyChar) and it's stuck. I don't find the name helpful, nor do most
newbies. It's one of those things you have to learn, rather than being
obvious in itself. Ah, legacy....


Helmut Giese

unread,
Nov 20, 2009, 2:47:58 PM11/20/09
to
On Fri, 20 Nov 2009 13:29:06 -0500, "Jeff Johnson" <i....@enough.spam>
wrote:

>"Helmut Giese" <hgi...@ratiosoft.com> wrote in message

These are kind words :)

0 new messages