Click here to Skip to main content
15,898,929 members
Home / Discussions / C#
   

C#

 
QuestionTranslating key codes to a System.Windows.Forms.Keys value. Pin
Shy Agam24-Oct-06 6:25
Shy Agam24-Oct-06 6:25 
AnswerRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Ed.Poore24-Oct-06 6:32
Ed.Poore24-Oct-06 6:32 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Shy Agam24-Oct-06 6:48
Shy Agam24-Oct-06 6:48 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Ed.Poore24-Oct-06 12:08
Ed.Poore24-Oct-06 12:08 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Ed.Poore24-Oct-06 12:09
Ed.Poore24-Oct-06 12:09 
You could do:
Console.WriteLine("{0}.{1}", k.GetType().Name, k.ToString());
That's the simplest way I think.

Sorry forgot to answer your first question.  The NumPad keys etc are still characters, just assigned a value outside the normal "visible" range.  E.g. Esc is char(13) I think.



Sig cops got me...

GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Shy Agam24-Oct-06 12:43
Shy Agam24-Oct-06 12:43 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Ed.Poore24-Oct-06 13:06
Ed.Poore24-Oct-06 13:06 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Shy Agam24-Oct-06 13:19
Shy Agam24-Oct-06 13:19 
Questionodbcdatareader hangs on close Pin
BlackDice24-Oct-06 5:19
BlackDice24-Oct-06 5:19 
AnswerRe: odbcdatareader hangs on close Pin
ednrgc24-Oct-06 6:27
ednrgc24-Oct-06 6:27 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 6:47
BlackDice24-Oct-06 6:47 
GeneralRe: odbcdatareader hangs on close Pin
ednrgc24-Oct-06 6:54
ednrgc24-Oct-06 6:54 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 8:33
BlackDice24-Oct-06 8:33 
GeneralRe: odbcdatareader hangs on close Pin
ednrgc24-Oct-06 8:39
ednrgc24-Oct-06 8:39 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 9:04
BlackDice24-Oct-06 9:04 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 9:15
BlackDice24-Oct-06 9:15 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 9:02
BlackDice24-Oct-06 9:02 
AnswerRe: odbcdatareader hangs on close Pin
Eric Dahlvang24-Oct-06 10:40
Eric Dahlvang24-Oct-06 10:40 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 11:20
BlackDice24-Oct-06 11:20 
QuestionGridView and outer joins Pin
lsugirljte24-Oct-06 5:02
lsugirljte24-Oct-06 5:02 
QuestionRe: GridView and outer joins Pin
lsugirljte25-Oct-06 3:31
lsugirljte25-Oct-06 3:31 
QuestionSorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 3:11
Gareth H24-Oct-06 3:11 
AnswerRe: Sorting through a Dataset with 1 method Pin
Not Active24-Oct-06 3:14
mentorNot Active24-Oct-06 3:14 
GeneralRe: Sorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 4:30
Gareth H24-Oct-06 4:30 
GeneralRe: Sorting through a Dataset with 1 method Pin
Not Active24-Oct-06 4:51
mentorNot Active24-Oct-06 4:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.