PC Review


Reply
Thread Tools Rate Thread

Capturing numberpad keys

 
 
=?Utf-8?B?U3Bpbm5pbmdDb25l?=
Guest
Posts: n/a
 
      22nd Feb 2005
Im currently building a MUD telnet client in VB .NET and am having trouble
mapping functionality to certain keys.

the user is focused on a command textbox and can enter text and send it etc
etc but i also want the arrow keys and the numberpad to have special
functions.

now generally i like the keydown event because it has access to e.keycode
which will give me easy acces to capture any key on the board. keycode also
differentiates the number keys fromt he numberpad keys. *however* the textbox
has built in funtionality for the keypressed event so when i press say
numpad8 it does what i told it to in the keydown event then it typed "8" into
the textbox. and for some reason i cant fathom keypressed reveals only
e.keychar and cannot access keycode otherwise id write my if block into the
keypressed event and place the e.handled at the end.

so to the point . is there away to pass the e.handled to the keypressed
event so it knows i dont need it for that key. or is there a way for the
keypressed event to differentiate the numpad keys from the number keys so i
can override its normal functinality or handle my actions through the pressed
event instead?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capturing control keys John Microsoft VB .NET 2 21st Apr 2008 04:17 AM
Capturing hot keys John Microsoft Dot NET Framework Forms 3 20th Feb 2008 03:03 AM
Capturing hot keys John Microsoft VB .NET 3 20th Feb 2008 03:03 AM
KeyDown not capturing all keys MLM450@hotmail.com Microsoft C# .NET 3 19th Sep 2006 12:21 PM
Capturing cursor keys ?? Sagaert Johan Microsoft C# .NET 2 21st Aug 2006 08:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:09 PM.