Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
AnswerRe: Router's bytes transferred so far Pin
Rajesh R Subramanian25-Jun-09 3:04
professionalRajesh R Subramanian25-Jun-09 3:04 
AnswerRe: Router's bytes transferred so far Pin
OriginalGriff25-Jun-09 3:06
mveOriginalGriff25-Jun-09 3:06 
Questionopening child window in mdi application. Pin
vinay_K25-Jun-09 2:44
vinay_K25-Jun-09 2:44 
Questiongui problem Pin
Serv-dee25-Jun-09 2:07
Serv-dee25-Jun-09 2:07 
QuestionRe: gui problem Pin
harold aptroot25-Jun-09 2:13
harold aptroot25-Jun-09 2:13 
AnswerRe: gui problem Pin
Rajesh R Subramanian25-Jun-09 2:43
professionalRajesh R Subramanian25-Jun-09 2:43 
AnswerRe: gui problem [modified] Pin
padmanabhan N25-Jun-09 2:14
padmanabhan N25-Jun-09 2:14 
GeneralRe: gui problem Pin
J4amieC25-Jun-09 2:27
J4amieC25-Jun-09 2:27 
AnswerRe: gui problem PinPopular
Pete O'Hanlon25-Jun-09 2:47
mvePete O'Hanlon25-Jun-09 2:47 
GeneralRe: gui problem Pin
Rajesh R Subramanian25-Jun-09 2:52
professionalRajesh R Subramanian25-Jun-09 2:52 
GeneralRe: gui problem Pin
Pete O'Hanlon25-Jun-09 3:03
mvePete O'Hanlon25-Jun-09 3:03 
GeneralRe: gui problem Pin
Rajesh R Subramanian25-Jun-09 3:09
professionalRajesh R Subramanian25-Jun-09 3:09 
QuestionDate Format Pin
kibromg25-Jun-09 1:43
kibromg25-Jun-09 1:43 
AnswerRe: Date Format Pin
stancrm25-Jun-09 1:48
stancrm25-Jun-09 1:48 
AnswerRe: Date Format Pin
Manas Bhardwaj25-Jun-09 2:03
professionalManas Bhardwaj25-Jun-09 2:03 
QuestionHow to confirm user & pass with active directory Pin
treuveni25-Jun-09 1:31
treuveni25-Jun-09 1:31 
AnswerRe: How to confirm user & pass with active directory Pin
J4amieC25-Jun-09 1:52
J4amieC25-Jun-09 1:52 
QuestionKeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Mc_Topaz25-Jun-09 1:12
Mc_Topaz25-Jun-09 1:12 
Hi!

In a simple game I'm creating, I need to trigger some methods when one of the arrow keys are pressed as well as the space key.

I'm using this code in the form to receive the keyboard inputs:

protected override void OnKeyDown(KeyEventArgs e)
{
            base.OnKeyDown(e);

            if (e.KeyCode == Keys.Up && e.KeyCode == Keys.Space)
                MessageBox.Show("UP & SPACE");
}


Nothing happens when I run the code. The OnKeyDown event don't seem to handle this condition at all.

How shall I solve this problem?
AnswerRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
OriginalGriff25-Jun-09 1:20
mveOriginalGriff25-Jun-09 1:20 
GeneralRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Mc_Topaz25-Jun-09 6:08
Mc_Topaz25-Jun-09 6:08 
AnswerRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
stancrm25-Jun-09 1:50
stancrm25-Jun-09 1:50 
GeneralRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Mc_Topaz25-Jun-09 6:12
Mc_Topaz25-Jun-09 6:12 
AnswerRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Dan Neely25-Jun-09 2:33
Dan Neely25-Jun-09 2:33 
GeneralRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Mc_Topaz25-Jun-09 6:48
Mc_Topaz25-Jun-09 6:48 
QuestionPrinter Job status using PJL Pin
koppewar25-Jun-09 0:51
professionalkoppewar25-Jun-09 0: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.