Click here to Skip to main content
15,887,898 members
Home / Discussions / C#
   

C#

 
QuestionTransparent Label on a Progressbar? Pin
DennisMetz24-Mar-04 5:54
DennisMetz24-Mar-04 5:54 
AnswerRe: Transparent Label on a Progressbar? Pin
surgeproof24-Mar-04 6:24
surgeproof24-Mar-04 6:24 
AnswerRe: Transparent Label on a Progressbar? Pin
Heath Stewart24-Mar-04 9:54
protectorHeath Stewart24-Mar-04 9:54 
GeneralRe: Transparent Label on a Progressbar? Pin
DennisMetz24-Mar-04 11:40
DennisMetz24-Mar-04 11:40 
GeneralApps without Mice Pin
Andrew Torrance24-Mar-04 5:43
Andrew Torrance24-Mar-04 5:43 
GeneralRe: Apps without Mice Pin
surgeproof24-Mar-04 6:15
surgeproof24-Mar-04 6:15 
GeneralRe: Apps without Mice Pin
Colin Angus Mackay24-Mar-04 6:25
Colin Angus Mackay24-Mar-04 6:25 
GeneralRe: Apps without Mice Pin
Heath Stewart24-Mar-04 9:12
protectorHeath Stewart24-Mar-04 9:12 
Also, assigning shortcut keys to menu items is easy enough. To handle function keys or even simple key strokes you can handle the various Mouse* events (or override the various OnMouse* handlers in derived classes for more efficient and controllable code). If you need to respond to keys pressed at any time while any window is open, see the Application.AddMessageFilter method and the corresponding IMessageFilter interface which you'd implement and handle the keys trokes you want (in which case the values match up with the Keys enumeration to make things easier) by handling the various keyboard notification messages (see the Platform SDK for values).

Finally, to have a form handle key strokes while any control has the focus, see the Form.KeyPreview property documentation.

Using all that, who needs a mouse? Smile | :)

 

Microsoft MVP, Visual C#
My Articles
Questionhow to wrap some dll functions from VC6 Pin
yyf24-Mar-04 5:37
yyf24-Mar-04 5:37 
AnswerRe: how to wrap some dll functions from VC6 Pin
Heath Stewart24-Mar-04 9:08
protectorHeath Stewart24-Mar-04 9:08 
GeneralRe: how to wrap some dll functions from VC6 Pin
yyf24-Mar-04 10:23
yyf24-Mar-04 10:23 
GeneralRe: how to wrap some dll functions from VC6 Pin
Heath Stewart24-Mar-04 11:19
protectorHeath Stewart24-Mar-04 11:19 
GeneralProperty Sheet Pin
DrGreen24-Mar-04 4:41
DrGreen24-Mar-04 4:41 
GeneralRe: Property Sheet Pin
Heath Stewart24-Mar-04 4:50
protectorHeath Stewart24-Mar-04 4:50 
GeneralRe: Property Sheet Pin
DrGreen24-Mar-04 5:08
DrGreen24-Mar-04 5:08 
GeneralRe: Property Sheet Pin
Heath Stewart24-Mar-04 5:13
protectorHeath Stewart24-Mar-04 5:13 
GeneralRe: Property Sheet Pin
DrGreen24-Mar-04 5:27
DrGreen24-Mar-04 5:27 
GeneralTreeview context menu remains visible Pin
CStiefeling24-Mar-04 4:26
CStiefeling24-Mar-04 4:26 
GeneralRe: Treeview context menu remains visible Pin
CStiefeling24-Mar-04 4:35
CStiefeling24-Mar-04 4:35 
GeneralRegistry Entry Pin
Guinness4Strength24-Mar-04 3:12
Guinness4Strength24-Mar-04 3:12 
GeneralRe: Registry Entry Pin
Guinness4Strength24-Mar-04 3:28
Guinness4Strength24-Mar-04 3:28 
GeneralRe: Registry Entry Pin
surgeproof24-Mar-04 6:17
surgeproof24-Mar-04 6:17 
GeneralRe: Registry Entry Pin
Jeremy Kimball24-Mar-04 9:30
Jeremy Kimball24-Mar-04 9:30 
GeneralRe: Registry Entry Pin
Guinness4Strength24-Mar-04 9:32
Guinness4Strength24-Mar-04 9:32 
Generalimage on scroll bar Pin
flmosh24-Mar-04 1:07
flmosh24-Mar-04 1:07 

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.