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

C#

 
GeneralRe: Capitalize String in Grid Column Pin
Heath Stewart15-Apr-04 11:08
protectorHeath Stewart15-Apr-04 11:08 
GeneralRe: Capitalize String in Grid Column Pin
TimTM16-Apr-04 4:50
TimTM16-Apr-04 4:50 
GeneralRe: Capitalize String in Grid Column Pin
Heath Stewart16-Apr-04 5:55
protectorHeath Stewart16-Apr-04 5:55 
GeneralRe: Capitalize String in Grid Column Pin
Bitwise Gamgee16-Apr-04 5:55
Bitwise Gamgee16-Apr-04 5:55 
GeneralRe: Capitalize String in Grid Column Pin
Heath Stewart16-Apr-04 6:10
protectorHeath Stewart16-Apr-04 6:10 
GeneralTreeView drag and drop Pin
Pete Burgess15-Apr-04 9:49
Pete Burgess15-Apr-04 9:49 
GeneralRe: TreeView drag and drop Pin
Heath Stewart15-Apr-04 11:18
protectorHeath Stewart15-Apr-04 11:18 
GeneralRe: TreeView drag and drop Pin
Pete Burgess15-Apr-04 11:35
Pete Burgess15-Apr-04 11:35 
GeneralRe: TreeView drag and drop Pin
Pete Burgess15-Apr-04 12:05
Pete Burgess15-Apr-04 12:05 
Questioncollections or methods? Pin
Judah Gabriel Himango15-Apr-04 9:39
sponsorJudah Gabriel Himango15-Apr-04 9:39 
AnswerRe: collections or methods? Pin
Heath Stewart15-Apr-04 9:59
protectorHeath Stewart15-Apr-04 9:59 
GeneralRe: collections or methods? Pin
Judah Gabriel Himango15-Apr-04 10:22
sponsorJudah Gabriel Himango15-Apr-04 10:22 
GeneralRe: collections or methods? Pin
Heath Stewart15-Apr-04 10:51
protectorHeath Stewart15-Apr-04 10:51 
GeneralRe: collections or methods? Pin
Judah Gabriel Himango15-Apr-04 11:23
sponsorJudah Gabriel Himango15-Apr-04 11:23 
GeneralRe: collections or methods? Pin
Steven Campbell15-Apr-04 11:17
Steven Campbell15-Apr-04 11:17 
GeneralRe: collections or methods? Pin
Judah Gabriel Himango15-Apr-04 16:41
sponsorJudah Gabriel Himango15-Apr-04 16:41 
AnswerRe: collections or methods? Pin
scadaguy15-Apr-04 11:42
scadaguy15-Apr-04 11:42 
GeneralRe: collections or methods? Pin
Judah Gabriel Himango15-Apr-04 16:53
sponsorJudah Gabriel Himango15-Apr-04 16:53 
AnswerRe: collections or methods? Pin
bjoernen24-Apr-04 23:06
bjoernen24-Apr-04 23:06 
GeneralHotkeys Pin
rickrf15-Apr-04 7:43
rickrf15-Apr-04 7:43 
GeneralRe: Hotkeys Pin
Tom Clement15-Apr-04 7:51
professionalTom Clement15-Apr-04 7:51 
GeneralRe: Hotkeys Pin
Heath Stewart15-Apr-04 8:41
protectorHeath Stewart15-Apr-04 8:41 
You can also implenent hotkeys in your menus easily by simply assigning the MenuItem.Shortcut property to the key you want.

For global hotkeys in your application, see the IMessageFilter interface. Implement that and catch the WM_KEYDOWN message (0x0100), then use the Message.WParam member to get which key was pressed (matches up with the Keys enumeration). Using this concept, hotkeys are available throughout your application (if you desire) and you could even implement a simple key mapping to make them easy to change (for example, from a user interface for the benefit of a user). This is common in games, for example, like Quake that allow you to bind functions to practically any key you want.

You can add your implementation at any time using Application.AddMessageFilter.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Hotkeys Pin
Mazdak15-Apr-04 9:24
Mazdak15-Apr-04 9:24 
GeneralRe: Hotkeys Pin
Heath Stewart15-Apr-04 9:25
protectorHeath Stewart15-Apr-04 9:25 
GeneralRe: Hotkeys Pin
rickrf16-Apr-04 4:36
rickrf16-Apr-04 4:36 

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.