Click here to Skip to main content
15,899,124 members
Home / Discussions / C#
   

C#

 
QuestionRe: Consume a webservice in a WebApplicationnew Pin
AS@1318-Jul-08 0:56
AS@1318-Jul-08 0:56 
QuestionUse NGEN with WebDeployment Pin
Merlin Tintin17-Jul-08 23:06
Merlin Tintin17-Jul-08 23:06 
AnswerRe: Use NGEN with WebDeployment Pin
Scott Dorman18-Jul-08 1:09
professionalScott Dorman18-Jul-08 1:09 
AnswerRe: Use NGEN with WebDeployment Pin
Simon P Stevens18-Jul-08 2:00
Simon P Stevens18-Jul-08 2:00 
GeneralRe: Use NGEN with WebDeployment Pin
Merlin Tintin18-Jul-08 4:17
Merlin Tintin18-Jul-08 4:17 
GeneralRe: Use NGEN with WebDeployment Pin
Daniel Grunwald18-Jul-08 6:06
Daniel Grunwald18-Jul-08 6:06 
GeneralRe: Use NGEN with WebDeployment Pin
Simon P Stevens18-Jul-08 7:59
Simon P Stevens18-Jul-08 7:59 
QuestionAbout Event Handlig - KeyDown Pin
selcuks17-Jul-08 23:00
selcuks17-Jul-08 23:00 
Hello,

I have written a method to process shortcut entries in my main form that simply dispatches messages to related methods for the button presses. But my problem is that when Key.Left or Key.Right is pressed for the "first" time, KeyDown event is not triggered for my following method:

KeyPreview property of main form is set to true,

private void shortcutKeyDown(object sender, KeyEventArgs e)
{

if (!e.Control && !e.Alt && !e.Shift) // I want to process if Ctrl Alt or Shift Keys are not pressed.
                {
                    switch (e.KeyCode)// Examine KeyCode
                    {
                        case (Keys.Left):
                            {
                                CallRelatedMethod(this, e);
                                break;
                            }
                        case (Keys.Right):
                            {
                                CallRelatedMethod(this, e);
                                break;
                            }
                        case (Keys.E):
                            {
                                CallRelatedMethod(this, e);
                                break;
                            }
                        case (Keys.W):
                            {
                                CallRelatedMethod(this, e);
                                break;
                            }
                        case (Keys.P):
                            {
                                CallRelatedMethod(this, e);
                                break;
                            }
                        default:
                            break;
                    } // switch (e.KeyValue)
                } //!e.Control || !e.Alt || !e.Shift

} // shortcutKeyDown


Test Notes:
Other keys "W, E, P" triggers the Keydown event without any problems.
When Left or Right key is pressed for the second time Keydown event is triggered.
Could not find similar problems in google or here so probably I am missing a simple point but I cannot see.


Any help is appreciated.
Thank you,
AnswerRe: About Event Handlig - KeyDown Pin
enginço17-Jul-08 23:50
enginço17-Jul-08 23:50 
AnswerRe: About Event Handlig - KeyDown Pin
Mbah Dhaim18-Jul-08 0:11
Mbah Dhaim18-Jul-08 0:11 
GeneralRe: About Event Handlig - KeyDown Pin
selcuks18-Jul-08 0:23
selcuks18-Jul-08 0:23 
GeneralRe: About Event Handlig - KeyDown Pin
enginço18-Jul-08 0:50
enginço18-Jul-08 0:50 
GeneralRe: About Event Handlig - KeyDown Pin
selcuks18-Jul-08 1:04
selcuks18-Jul-08 1:04 
GeneralRe: About Event Handlig - KeyDown Pin
enginço18-Jul-08 1:22
enginço18-Jul-08 1:22 
GeneralRe: About Event Handlig - KeyDown Pin
selcuks18-Jul-08 2:00
selcuks18-Jul-08 2:00 
GeneralRe: About Event Handlig - KeyDown Pin
enginço18-Jul-08 2:26
enginço18-Jul-08 2:26 
QuestionHttp 502 and 503 errors Pin
George_George17-Jul-08 21:38
George_George17-Jul-08 21:38 
AnswerRe: Http 502 and 503 errors Pin
N a v a n e e t h17-Jul-08 22:29
N a v a n e e t h17-Jul-08 22:29 
GeneralRe: Http 502 and 503 errors Pin
George_George17-Jul-08 22:36
George_George17-Jul-08 22:36 
GeneralRe: Http 502 and 503 errors Pin
N a v a n e e t h17-Jul-08 23:41
N a v a n e e t h17-Jul-08 23:41 
GeneralRe: Http 502 and 503 errors Pin
George_George17-Jul-08 23:45
George_George17-Jul-08 23:45 
GeneralRe: Http 502 and 503 errors Pin
led mike18-Jul-08 8:59
led mike18-Jul-08 8:59 
GeneralRe: Http 502 and 503 errors Pin
George_George20-Jul-08 16:09
George_George20-Jul-08 16:09 
GeneralRe: Http 502 and 503 errors Pin
N a v a n e e t h18-Jul-08 17:10
N a v a n e e t h18-Jul-08 17:10 
GeneralRe: Http 502 and 503 errors Pin
George_George20-Jul-08 16:05
George_George20-Jul-08 16:05 

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.