I have a popupmenu. When the user clicks a button I want to display as second (and third etc.) popupmenu which is a member of a control set, actually a clone of the first popupmenu, but with different index.
I made the first popupmenu already a controlset with index 0
How to add more controls in this set?
Thanks
Quick test:
dim apopup as PopupMenu
linkMenu.Append(aPopup) <- compiler error
linkmenu(1).Top = linkMenu(0).top + 30
linkmenu(1).Left = linkMenu(0).Left
It’s not a true array. You will need to store the “ubound” in a static or window variable which will be incremented every time a new popupmenu is added to the control set.