|
-
Apr 16th, 2001, 08:09 AM
#1
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 ????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|