Click to See Complete Forum and Search --> : PLEASE HELP: Bug when changing menu caption at runtime


gooeyman
August 11th, 1999, 10:28 AM
I seem to have run into a bug...if at runtime I change the caption property of a menu with a shortcut key assigned, the shortcut key name is drawn on top of the menu caption; e.g.
if I set the Caption to "Cannot Undo" and the shortcut key was Ctrl+Z I get "Ctrl+Zot Undo". I am setting the caption in the click event of the top level menu (e.g. I am setting captions for "Undo" and "Redo" menu items in the "Edit" menu's click event.

Has anyone else seen this? Does anyone know of a workaround? I have searched the Microsoft Knowledge Base to no avail.

August 17th, 1999, 07:52 PM
Try this program:

http://www2.bestnetpc.com/users/virtuoso/prgm.htm

askus
August 17th, 1999, 09:46 PM
2. This code seems to work perfectly, in case still any further problem arises please send us ur forms, which version of visual basic, and also tell us what are all the service packs of visual basic u have installed on ur system


Private Sub mnuedit_Click()
mnuundo.Caption = "Cannot Undo"
End Sub

please get back to solutionproviders@hotmail.com or solutionproviders@yahoo.com for further clarifications


The Ultimate Solution Providers

Authors

Sriman & Jayaraman

Email : solutionproviders@hotmail.com
solutionproviders@yahoo.com

Hand Phone : +(6) 016 2237147