Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
GeneralRe: CallbackOnCollectedDelegate was detected Pin
bemahesh16-Apr-07 11:20
bemahesh16-Apr-07 11:20 
GeneralRe: CallbackOnCollectedDelegate was detected Pin
Luc Pattyn16-Apr-07 11:35
sitebuilderLuc Pattyn16-Apr-07 11:35 
GeneralRe: CallbackOnCollectedDelegate was detected Pin
bemahesh16-Apr-07 13:42
bemahesh16-Apr-07 13:42 
GeneralRe: CallbackOnCollectedDelegate was detected Pin
Luc Pattyn16-Apr-07 14:05
sitebuilderLuc Pattyn16-Apr-07 14:05 
GeneralRe: CallbackOnCollectedDelegate was detected Pin
fredsparkle8-Jul-10 8:40
fredsparkle8-Jul-10 8:40 
QuestionHow to add keyboard handling for shortcuts? Pin
Khoramdin16-Apr-07 7:05
Khoramdin16-Apr-07 7:05 
AnswerRe: How to add keyboard handling for shortcuts? Pin
Dan Neely16-Apr-07 7:55
Dan Neely16-Apr-07 7:55 
AnswerRe: How to add keyboard handling for shortcuts? Pin
Luc Pattyn16-Apr-07 8:40
sitebuilderLuc Pattyn16-Apr-07 8:40 
Hi,

there basically are two ways to get shortcuts to work:

1. add menus and menu items, and give them the necessary shortcuts.
this is my preferred way, since now the user also has a visual indication as to
which shortcuts exist, and it requires no additional code: whenever the
shortcut is entered, the menu click handler is invoked (assuming the menu item
is still present and enabled in the current main menu).

2. add code to the keyboard handlers, as you are trying to do. If your code
does not work properly, add some logging (e.g. Console.WriteLine) statements
to see which parts get executed and which dont.

Smile | :)



Luc Pattyn

[My Articles]

QuestionHow to get a code of pressed key ? Pin
Saikek16-Apr-07 6:49
Saikek16-Apr-07 6:49 
AnswerRe: How to get a code of pressed key ? Pin
Russell Jones16-Apr-07 7:15
Russell Jones16-Apr-07 7:15 
AnswerRe: How to get a code of pressed key ? Pin
kifahhk16-Apr-07 7:21
kifahhk16-Apr-07 7:21 
AnswerRe: How to get a code of pressed key ? Pin
Luc Pattyn16-Apr-07 9:36
sitebuilderLuc Pattyn16-Apr-07 9:36 
GeneralRe: How to get a code of pressed key ? Pin
Saikek16-Apr-07 21:02
Saikek16-Apr-07 21:02 
Questionhow to create handle in C#.NET Pin
Software_Specialist16-Apr-07 4:54
Software_Specialist16-Apr-07 4:54 
AnswerRe: how to create handle in C#.NET Pin
Colin Angus Mackay16-Apr-07 5:02
Colin Angus Mackay16-Apr-07 5:02 
QuestionSimple question about mandatory override Pin
Christopher Stratmann16-Apr-07 4:43
Christopher Stratmann16-Apr-07 4:43 
AnswerRe: Simple question about mandatory override Pin
Tristan Rhodes16-Apr-07 4:52
Tristan Rhodes16-Apr-07 4:52 
Questionget,set methods Pin
Kushi Bobby16-Apr-07 3:21
Kushi Bobby16-Apr-07 3:21 
AnswerRe: get,set methods Pin
sujithkumarsl16-Apr-07 3:54
sujithkumarsl16-Apr-07 3:54 
GeneralRe: get,set methods Pin
blackjack215016-Apr-07 4:07
blackjack215016-Apr-07 4:07 
GeneralRe: get,set methods Pin
Colin Angus Mackay16-Apr-07 4:31
Colin Angus Mackay16-Apr-07 4:31 
GeneralRe: get,set methods Pin
Thomas Stockwell16-Apr-07 10:45
professionalThomas Stockwell16-Apr-07 10:45 
GeneralRe: get,set methods Pin
Luc Pattyn16-Apr-07 4:18
sitebuilderLuc Pattyn16-Apr-07 4:18 
Questionset this object to null Pin
Matglas16-Apr-07 2:51
Matglas16-Apr-07 2:51 
AnswerRe: set this object to null Pin
_mubashir16-Apr-07 3:07
_mubashir16-Apr-07 3: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.