interesting, I had the same thing happen on my modeless form. I'll try that.
chriswilson <>
|>I have written a VB.Net application using VS2005 and ACAD 2007. Some commands open modeless forms which have main menus which contain shortcut keys (e.g., Cntl-O = File | Open).
|>
|>When the form is open and active and I press Cntl-O, nothing happens.
|>
|>I have tried to open using frm.Show and ShowModelessDialog, with same result. If that form is opened as a modal dialog, it works as expected, and oddly enough, the modeless works when in debug mode (e.g., run debugger in VS2005 which starts up ACAD), the problem doesn't occur, even for modeless forms.
|>
|>Has anyone experienced this? I REALLY need the function keys to work in my modeless forms!!!
|>
|>Thanks in advance.
|>
|>P.S., I could provide sample code, but it is easy to reproduce using a sample form.
|>
|>
|>UPDATE!!!!!
|>
|>I figured it out by myself! You must use the CommandFlags.Session attribute on the routine to get the shortcuts to work. Hope this helps someone.
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom