Results 1 to 2 of 2

Thread: RunTime Menu addition

  1. #1
    manishmenghani
    Guest
    Hi

    I want to add menu items in my program to be created at run time . However I m running a code which is successfully added the menu , when the form is loaded but I am not able to call it from outside that is I want that suppose there is a button on my form , if someone clicks on that button then a new menu item should be added in the list .
    the code which I m running i s

    For i = 1 To UBound(strAnalyzer)
    Load mnuQsurf(i)
    mnuQsurf(i).Caption = "analyzer " & i
    mnuQsurf(i).Visible = True
    Next

    but when I m calling this code on the button click it says

    "Object Already loaded"

    how can this problem be resolved ????


  2. #2
    Megatron
    Guest
    It's probably because you're trying to load a menu that as already loaded. Check and make sure that you are loading menus that are not already loaded.

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