Hi John,
You may try overridding the Form.ProcessCmdKey method and set a breakpoint
in it, if everything works fine, this breakpoint will be reached when you
press F9 key. Here is a sample of the call stack when the menu item client
event finally fires.
WindowsApplication32.exe!WindowsApplication32.Form1.menuItem2_Click(System.
Object sender = {System.Windows.Forms.MenuItem}, System.EventArgs e =
{System.EventArgs})
system.windows.forms.dll!System.Windows.Forms.MenuItem.OnClick(System.EventA
rgs e = {System.EventArgs}) + 0x8f bytes
system.windows.forms.dll!System.Windows.Forms.MenuItem.ShortcutClick() +
0x92 bytes
system.windows.forms.dll!System.Windows.Forms.Menu.ProcessCmdKey(System.Wind
ows.Forms.Message msg = {System.Windows.Forms.Message},
system.windows.forms.dll!System.Windows.Forms.Form.ProcessCmdKey(System.Wind
ows.Forms.Message msg = {System.Windows.Forms.Message},
system.windows.forms.dll!System.Windows.Forms.Control.ProcessCmdKey(System.W
indows.Forms.Message msg = {System.Windows.Forms.Message},
system.windows.forms.dll!System.Windows.Forms.Control.ProcessCmdKey(System.W
indows.Forms.Message msg = {System.Windows.Forms.Message},
system.windows.forms.dll!System.Windows.Forms.Form.ProcessCmdKey(System.Wind
ows.Forms.Message msg = {System.Windows.Forms.Message},
system.windows.forms.dll!System.Windows.Forms.Control.ProcessCmdKey(System.W
indows.Forms.Message msg = {System.Windows.Forms.Message},
system.windows.forms.dll!System.Windows.Forms.Control.PreProcessMessage(Syst
em.Windows.Forms.Message msg = {System.Windows.Forms.Message})
....
Hope it helps!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.