Click here to Skip to main content
15,891,708 members
Home / Discussions / C#
   

C#

 
GeneralRe: System.io.Directory.GetFiles Pin
buchstaben28-Feb-08 3:49
buchstaben28-Feb-08 3:49 
GeneralRe: System.io.Directory.GetFiles Pin
George Luttrell28-Feb-08 13:43
George Luttrell28-Feb-08 13:43 
GeneralTrapping a Keystroke Pin
MarkMokris27-Feb-08 6:30
MarkMokris27-Feb-08 6:30 
GeneralRe: Trapping a Keystroke Pin
Gareth H27-Feb-08 6:37
Gareth H27-Feb-08 6:37 
GeneralRe: Trapping a Keystroke Pin
MarkMokris27-Feb-08 6:42
MarkMokris27-Feb-08 6:42 
GeneralRe: Trapping a Keystroke Pin
Gareth H27-Feb-08 6:49
Gareth H27-Feb-08 6:49 
GeneralRe: Trapping a Keystroke Pin
PIEBALDconsult27-Feb-08 6:58
mvePIEBALDconsult27-Feb-08 6:58 
GeneralRe: Trapping a Keystroke Pin
Dave Kreskowiak27-Feb-08 7:04
mveDave Kreskowiak27-Feb-08 7:04 
OnKeyDown is a method that raises the KeyDown event for handlers of that event. You're not stopping keystrokes from showing up because you haven't stopped the processing of the key. You've only stopped the raising of an event.

If you want to stop the keystroke from occuring, inside your custom textbox control, handle the KeyDown event. Inside there, do your processing to figure out if you want the key to be stopped or not and set the e.SuppressKeyPress property to true if you want it stopped.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: Trapping a Keystroke Pin
GuyThiebaut27-Feb-08 7:12
professionalGuyThiebaut27-Feb-08 7:12 
GeneralDateTimePicker Pin
Trustapple27-Feb-08 5:13
Trustapple27-Feb-08 5:13 
GeneralRe: DateTimePicker Pin
led mike27-Feb-08 5:21
led mike27-Feb-08 5:21 
GeneralRe: DateTimePicker Pin
Trustapple27-Feb-08 6:25
Trustapple27-Feb-08 6:25 
GeneralRe: DateTimePicker Pin
led mike27-Feb-08 6:51
led mike27-Feb-08 6:51 
GeneralRe: DateTimePicker Pin
J4amieC27-Feb-08 6:25
J4amieC27-Feb-08 6:25 
JokeRe: DateTimePicker Pin
Not Active27-Feb-08 7:22
mentorNot Active27-Feb-08 7:22 
GeneralDynamic asp Tables and AJAX issue Pin
mrarunks27-Feb-08 4:47
mrarunks27-Feb-08 4:47 
GeneralRe: Dynamic asp Tables and AJAX issue Pin
LongRange.Shooter27-Feb-08 8:13
LongRange.Shooter27-Feb-08 8:13 
Questiontrimming a string Pin
robustm27-Feb-08 4:46
robustm27-Feb-08 4:46 
GeneralRe: trimming a string Pin
Xmen Real 27-Feb-08 4:49
professional Xmen Real 27-Feb-08 4:49 
GeneralRe: trimming a string Pin
phannon8627-Feb-08 4:52
professionalphannon8627-Feb-08 4:52 
GeneralRe: trimming a string Pin
PIEBALDconsult27-Feb-08 6:53
mvePIEBALDconsult27-Feb-08 6:53 
GeneralRe: trimming a string Pin
Luc Pattyn27-Feb-08 8:12
sitebuilderLuc Pattyn27-Feb-08 8:12 
GeneralRe: trimming a string Pin
PIEBALDconsult27-Feb-08 15:50
mvePIEBALDconsult27-Feb-08 15:50 
GeneralRe: trimming a string Pin
Luc Pattyn27-Feb-08 22:37
sitebuilderLuc Pattyn27-Feb-08 22:37 
GeneralRe: trimming a string Pin
PIEBALDconsult28-Feb-08 12:05
mvePIEBALDconsult28-Feb-08 12: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.