Click here to Skip to main content
15,916,288 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reading PDF data from Byte Stream Pin
Richard MacCutchan27-Oct-10 2:51
mveRichard MacCutchan27-Oct-10 2:51 
GeneralRe: Reading PDF data from Byte Stream Pin
fjdiewornncalwe27-Oct-10 2:54
professionalfjdiewornncalwe27-Oct-10 2:54 
QuestionPowershell question: How to print only the current folder name? Pin
melwyn27-Oct-10 0:01
melwyn27-Oct-10 0:01 
AnswerRe: Powershell question: How to print only the current folder name? Pin
Sauro Viti27-Oct-10 0:17
professionalSauro Viti27-Oct-10 0:17 
QuestionCouldn't reder the video capture stream. hr=0x80070057 Pin
mengnancy26-Oct-10 23:30
mengnancy26-Oct-10 23:30 
Questioncross-post Pin
Luc Pattyn27-Oct-10 0:58
sitebuilderLuc Pattyn27-Oct-10 0:58 
AnswerRe: cross-post Pin
mengnancy27-Oct-10 1:02
mengnancy27-Oct-10 1:02 
QuestionKeyboard input handle problem Pin
Emmet_Brown26-Oct-10 21:22
Emmet_Brown26-Oct-10 21:22 
Hi all,

I want to close the from with a keyboard input 'K' but I cannot handle the input.
Before asking here, I've done lots of researches on web and especially on msdn.

This is not the first time I've been using KeyDown event but now I'm on a new computer and I cannot figure out why this time it does not work.

my code is simple:

private void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.K)
            {
                this.Close();
            }
        }


and on the designer side:

this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);

All other events work just fine, like MouseOver, MouseDown or MouseMove

but when it comes to KeyDown or KeyPress, it doesn't work

any suggestions? Frown | :(
AnswerRe: Keyboard input handle problem Pin
RaviRanjanKr26-Oct-10 21:59
professionalRaviRanjanKr26-Oct-10 21:59 
GeneralRe: Keyboard input handle problem Pin
Emmet_Brown26-Oct-10 22:01
Emmet_Brown26-Oct-10 22:01 
QuestionApplication events Pin
jenya726-Oct-10 21:12
jenya726-Oct-10 21:12 
AnswerRe: Application events Pin
Rajesh Anuhya26-Oct-10 21:17
professionalRajesh Anuhya26-Oct-10 21:17 
AnswerRe: Application events Pin
Keith Barrow26-Oct-10 21:27
professionalKeith Barrow26-Oct-10 21:27 
GeneralRe: Application events Pin
jenya726-Oct-10 21:32
jenya726-Oct-10 21:32 
QuestionOO training Pin
abhithcker26-Oct-10 19:47
abhithcker26-Oct-10 19:47 
AnswerRe: OO training Pin
Rajesh Anuhya26-Oct-10 20:03
professionalRajesh Anuhya26-Oct-10 20:03 
GeneralRe: OO training Pin
leppie26-Oct-10 20:37
leppie26-Oct-10 20:37 
AnswerRe: OO training PinPopular
RaviRanjanKr26-Oct-10 21:08
professionalRaviRanjanKr26-Oct-10 21:08 
QuestionC# - Send Message to minimize window game. How i can do this? Pin
NaiiD26-Oct-10 10:02
NaiiD26-Oct-10 10:02 
AnswerRe: C# - Send Message to minimize window game. How i can do this? Pin
NaiiD27-Oct-10 6:33
NaiiD27-Oct-10 6:33 
Questioncan someone tell me how can i detect an ellipse in BTMP file? Pin
inayathussaintoori26-Oct-10 9:46
inayathussaintoori26-Oct-10 9:46 
AnswerRe: can someone tell me how can i detect an ellipse in BTMP file? Pin
DaveAuld26-Oct-10 9:50
professionalDaveAuld26-Oct-10 9:50 
Answer1212 Pin
Luc Pattyn26-Oct-10 9:53
sitebuilderLuc Pattyn26-Oct-10 9:53 
GeneralRe: 1212 [modified] Pin
DaveAuld26-Oct-10 9:55
professionalDaveAuld26-Oct-10 9:55 
GeneralRe: can someone tell me how can i detect an ellipse in BTMP file? Pin
inayathussaintoori26-Oct-10 11:37
inayathussaintoori26-Oct-10 11:37 

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.