How does one specify the Escape key as an accelerator?
My client has specified that the Escape key be used as an accelerator for a
particular menu item. In VS05's designer mode, this particular key is not
available as an option to select from the menu item's properties
ShortcutKeys item. "No problem," says I to myself (I talk to myself. It's
the only way I can have an intelligent conversation around here. Or at least
a coherent one, but that's a tale for another time...) "I'll just go into
the form's designer.cs file and manually enter
this.mnuEdit_DeselectAl.ShoartcutyKeys =
((System.Windows.Forms.Kyes)System.WIndows.Forms.K eys.Escape);
Only then the design view doesn't come up any more. It says that 27 is an
illegal value. So, is it possible to specify the Escape key as an
accelerator or does VS05 preclude this option? If possible, what am I doing
wrong?
--
Richard Lewis Haggard
www.Haggard-And-Associates.com