Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: conferencing Pin
Richard MacCutchan18-Jul-11 21:21
mveRichard MacCutchan18-Jul-11 21:21 
QuestionCRON Question Pin
Kevin Marois18-Jul-11 5:51
professionalKevin Marois18-Jul-11 5:51 
AnswerRe: CRON Question Pin
PIEBALDconsult18-Jul-11 14:29
mvePIEBALDconsult18-Jul-11 14:29 
GeneralRe: CRON Question Pin
Herman<T>.Instance18-Jul-11 21:28
Herman<T>.Instance18-Jul-11 21:28 
GeneralRe: CRON Question Pin
Matt Meyer19-Jul-11 3:32
Matt Meyer19-Jul-11 3:32 
AnswerRe: CRON Question Pin
Pravin Patil, Mumbai19-Jul-11 0:03
Pravin Patil, Mumbai19-Jul-11 0:03 
AnswerRe: CRON Question Pin
jschell19-Jul-11 8:24
jschell19-Jul-11 8:24 
QuestionShortcut key on ToolStripMenuItem not working Pin
BobJanova18-Jul-11 4:18
BobJanova18-Jul-11 4:18 
I'm sure I'm missing something obvious here but I don't see it ...

I am constructing a menu at runtime from an XML document, which is being read into a data class created with the xsd utility. This is all fine. As part of constructing the menu itself, I assign to the ShortcutKeys property:

if (!string.IsNullOrEmpty(level.Accelerator))
    menuItem.ShortcutKeys = (Keys)TypeDescriptor.GetConverter(typeof(Keys)).ConvertFromString(level.Accelerator);

Accelerator is a property auto-generated by xsd and looks like "Ctrl+N", "F4" etc, and this line is running when it should.

The result is that my menu is correctly built, and shortcut keys appear in the menuitems, but pressing the key doesn't cause the Click event to fire. If I first open that menu, the shortcuts fire (i.e. if I open 'File' and press Ctrl+O, the open dialog appears), but they do not if the menu on which the item lives is not opened. (Obviously this is not correct behaviour.)

Just wondering if someone has seen something similar and can tell me what simple step I am missing.
QuestionWPF: listbox not refreshing Pin
Yoyosch18-Jul-11 3:59
Yoyosch18-Jul-11 3:59 
AnswerRe: WPF: listbox not refreshing Pin
Dalek Dave18-Jul-11 14:37
professionalDalek Dave18-Jul-11 14:37 
GeneralRe: WPF: listbox not refreshing Pin
Yoyosch18-Jul-11 19:24
Yoyosch18-Jul-11 19:24 
Questionproblem with ADO :problem with inserting row in the same time Pin
Honeyboy_2017-Jul-11 12:19
Honeyboy_2017-Jul-11 12:19 
AnswerRe: problem with ADO :problem with inserting row in the same time Pin
PIEBALDconsult17-Jul-11 13:50
mvePIEBALDconsult17-Jul-11 13:50 
AnswerRe: problem with ADO :problem with inserting row in the same time Pin
Shameel17-Jul-11 21:17
professionalShameel17-Jul-11 21:17 
AnswerRe: problem with ADO :problem with inserting row in the same time Pin
Abhinav S17-Jul-11 22:36
Abhinav S17-Jul-11 22:36 
AnswerRe: problem with ADO :problem with inserting row in the same time Pin
BobJanova17-Jul-11 23:35
BobJanova17-Jul-11 23:35 
AnswerRe: problem with ADO :problem with inserting row in the same time Pin
Pete O'Hanlon18-Jul-11 0:01
mvePete O'Hanlon18-Jul-11 0:01 
AnswerRe: problem with ADO :problem with inserting row in the same time Pin
Ennis Ray Lynch, Jr.18-Jul-11 7:15
Ennis Ray Lynch, Jr.18-Jul-11 7:15 
AnswerRe: problem with ADO :problem with inserting row in the same time Pin
Herman<T>.Instance18-Jul-11 21:27
Herman<T>.Instance18-Jul-11 21:27 
GeneralRe: problem with ADO :problem with inserting row in the same time Pin
Honeyboy_2019-Jul-11 2:36
Honeyboy_2019-Jul-11 2:36 
GeneralRe: problem with ADO :problem with inserting row in the same time Pin
Herman<T>.Instance19-Jul-11 3:09
Herman<T>.Instance19-Jul-11 3:09 
GeneralRe: problem with ADO :problem with inserting row in the same time Pin
Honeyboy_2019-Jul-11 6:54
Honeyboy_2019-Jul-11 6:54 
GeneralRe: problem with ADO :problem with inserting row in the same time Pin
Herman<T>.Instance19-Jul-11 7:50
Herman<T>.Instance19-Jul-11 7:50 
AnswerRe: problem with ADO :problem with inserting row in the same time Pin
Morton song19-Jul-11 17:30
Morton song19-Jul-11 17:30 
QuestionDataGridView , get Date from MySql Pin
igalep13217-Jul-11 7:03
igalep13217-Jul-11 7:03 

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.