Click here to Skip to main content
15,905,874 members
Home / Discussions / C#
   

C#

 
Generalbuild a C# project in Release & Debug (same out put directory) Pin
kaminem19-Dec-07 5:30
kaminem19-Dec-07 5:30 
GeneralRe: build a C# project in Release & Debug (same out put directory) Pin
darkelv19-Dec-07 6:11
darkelv19-Dec-07 6:11 
Generalhyperlink on a desktop app. Pin
s3rro19-Dec-07 5:02
s3rro19-Dec-07 5:02 
GeneralRe: hyperlink on a desktop app. Pin
DaveyM6919-Dec-07 5:23
professionalDaveyM6919-Dec-07 5:23 
GeneralRe: hyperlink on a desktop app. Pin
Anthony Mushrow19-Dec-07 7:31
professionalAnthony Mushrow19-Dec-07 7:31 
GeneralHandling keystrokes Pin
jesarg19-Dec-07 4:44
jesarg19-Dec-07 4:44 
GeneralRe: Handling keystrokes Pin
Luc Pattyn19-Dec-07 5:15
sitebuilderLuc Pattyn19-Dec-07 5:15 
GeneralRe: Handling keystrokes Pin
jesarg19-Dec-07 10:12
jesarg19-Dec-07 10:12 
Thanks a lot. The topic of the intricacies of handling keystrokes is probably worth an article in itself.

In my test application, I made a form with a listbox in it. The listbox contained several items, including an item that started with "S", and the application handled the Control-S functionality by displaying a messagebox.

Although the Control-S messagebox still showed up when Control-S was pressed while the listbox had focus, the application also highlighted the listbox item that started with "S" (default functionality for a listbox is to highlight based on keypresses regardless of which modifiers are also pressed). The only way to suppress this functionality was to set the KeyEventArgs.SuppressKeyPress property of the Listbox.KeyDown event (it couldn't be done in the Form.KeyDown event).

Thus, I can guarantee that my main form handles keypresses like I want it to, but I still have to hunt down the sub-controls one-by-one to make sure they don't handle keypresses when I don't want them to.
GeneralPropertyGrid Pin
netJP12L19-Dec-07 4:27
netJP12L19-Dec-07 4:27 
GeneralRe: PropertyGrid Pin
TJoe19-Dec-07 5:30
TJoe19-Dec-07 5:30 
GeneralRe: PropertyGrid Pin
netJP12L19-Dec-07 5:37
netJP12L19-Dec-07 5:37 
AnswerRe: PropertyGrid Pin
TJoe19-Dec-07 6:05
TJoe19-Dec-07 6:05 
GeneralRe: PropertyGrid Pin
netJP12L19-Dec-07 6:58
netJP12L19-Dec-07 6:58 
AnswerRe: PropertyGrid Pin
TJoe20-Dec-07 3:00
TJoe20-Dec-07 3:00 
GeneralRe: PropertyGrid Pin
netJP12L20-Dec-07 5:26
netJP12L20-Dec-07 5:26 
GeneralRe: PropertyGrid Pin
TJoe20-Dec-07 5:59
TJoe20-Dec-07 5:59 
Generalhelp quick Pin
nta_388619-Dec-07 4:26
nta_388619-Dec-07 4:26 
GeneralRe: help quick Pin
m@u19-Dec-07 4:45
m@u19-Dec-07 4:45 
GeneralRe: help quick Pin
Paul Conrad24-Dec-07 19:43
professionalPaul Conrad24-Dec-07 19:43 
GeneralProblems with PAINT program Pin
Luc Pattyn19-Dec-07 5:21
sitebuilderLuc Pattyn19-Dec-07 5:21 
GeneralSession Pin
anupamwb19-Dec-07 3:38
anupamwb19-Dec-07 3:38 
GeneralRe: Session Pin
DotNetXenon19-Dec-07 9:57
DotNetXenon19-Dec-07 9:57 
GeneralRe: Session Pin
anupamwb20-Dec-07 3:02
anupamwb20-Dec-07 3:02 
GeneralGenerics - How to implement Compare Methods Pin
gunner_uk200019-Dec-07 2:27
gunner_uk200019-Dec-07 2:27 
GeneralRe: Generics - How to implement Compare Methods Pin
OsoreWatashi19-Dec-07 2:52
OsoreWatashi19-Dec-07 2:52 

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.