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

C#

 
AnswerRe: Transactions between layers Pin
Dustin Metzgar24-Oct-06 9:46
Dustin Metzgar24-Oct-06 9:46 
GeneralRe: Transactions between layers Pin
Luis C. Lopez24-Oct-06 10:01
Luis C. Lopez24-Oct-06 10:01 
QuestionShould I have outlook in order to show mht file in my c# application? Pin
AngryC24-Oct-06 7:47
AngryC24-Oct-06 7:47 
AnswerRe: Should I have outlook in order to show mht file in my c# application? Pin
Dave Kreskowiak24-Oct-06 8:11
mveDave Kreskowiak24-Oct-06 8:11 
AnswerRe: Should I have outlook in order to show mht file in my c# application? Pin
bradsnobar24-Oct-06 8:43
bradsnobar24-Oct-06 8:43 
QuestionMessagebox pop up behind mainform Pin
bradsnobar24-Oct-06 7:34
bradsnobar24-Oct-06 7:34 
AnswerRe: Messagebox pop up behind mainform Pin
engsrini24-Oct-06 18:53
engsrini24-Oct-06 18:53 
QuestionTranslating key codes to a System.Windows.Forms.Keys value. Pin
Shy Agam24-Oct-06 6:25
Shy Agam24-Oct-06 6:25 
Hey all,

I'm encapsulating the SetWindowsHookEx() function in order to capture all keyboard messages.
I'm raising KeyEventHandler events from my class, so I'm planning to use the KeyEventArgs object, of course. Smile | :)

When capturing keyboard messages I get the key-code for the pressed key.
To instantiate a KeyEventArgs object, I need a System.Windows.Forms.Keys value.

Anybody got an idea as for how to get the appropriate Keys value
without using a large switch statement involving a case for every key on the keyboard??

Thanks in advance,
Shy.
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 
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 

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.