CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Posts
    3

    PLEASE HELP: Bug when changing menu caption at runtime

    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.



  2. #2
    Guest

    Re: PLEASE HELP: Bug when changing menu caption at runtime


  3. #3

    Re: PLEASE HELP: Bug when changing menu caption at runtime

    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 [email protected] or [email protected] for further clarifications


    The Ultimate Solution Providers

    Authors

    Sriman & Jayaraman

    Email : [email protected]
    [email protected]

    Hand Phone : +(6) 016 2237147

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured