Print Page | Close Window

KeyBindings

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=348
Printed Date: 20 April 2024 at 7:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: KeyBindings
Posted By: MikeV
Subject: KeyBindings
Date Posted: 11 January 2004 at 4:35am

I am having a problem with the KeyBindings.

I have an MDIForm with the CommandBars control on it.  I build the menus in code, add the KeyBindings and everything works fine.

From this MDIForm I call another form which has it's own CommandBars control.  On Form2 I have just a ToolBar ( the MenuBar is not visible) with 5 buttons on it.  This menu is also built in code and has no KeyBindings associated with it. The second form is not modal, so the user can create an instance of Form2, return focus to the MDIForm and the KeyBindings will still work fine.  However, as soon as Form2 has been unloaded, the KeyBindings on the MDIForm stop working.

Any idea what is going on and how to fix it?

Thanks.




Replies:
Posted By: MikeV
Date Posted: 11 January 2004 at 10:49pm

Doh!... After reading the description again I realize I said the first form was an MDI Form.  It actually is just a regular form (as is form2).  Sorry for the confusion.

My apologies...




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net