G
Guest
Hi, this is a repost of an earlier question, but hopefully explained a bit
better!
I have created a shortcut menu for a list box called MPR_Queue_Menu.
The menu has various options on it, including 2 'sub' menus.
I need to know the code to set a reference to the shortcut menu and then the
2 specific sub menus I want to change.
e.g.
Set cmdbar = Commandbars("MPR_Queue_Menu").FindControl(,,"Update Status")
cmdbar.Edit
And then Add or Delete options to the sub menu as necessary.
The available options will be retrieved from a recordset, according on which
'Queue' is visible at the time.
Creating the options on the menu and hiding or showing them appropriately is
not feasable as depending on what is shown in the list box will depend on the
available options.
My question is, how do I edit the controls shown on the sub menu within the
shortcut menu in VB6?
I have tried various ways using my VB6 knowledge and consulted the Knowledge
base, but nothing seems to be clear...
Many thanks in anticipation,
Steve.
better!
I have created a shortcut menu for a list box called MPR_Queue_Menu.
The menu has various options on it, including 2 'sub' menus.
I need to know the code to set a reference to the shortcut menu and then the
2 specific sub menus I want to change.
e.g.
Set cmdbar = Commandbars("MPR_Queue_Menu").FindControl(,,"Update Status")
cmdbar.Edit
And then Add or Delete options to the sub menu as necessary.
The available options will be retrieved from a recordset, according on which
'Queue' is visible at the time.
Creating the options on the menu and hiding or showing them appropriately is
not feasable as depending on what is shown in the list box will depend on the
available options.
My question is, how do I edit the controls shown on the sub menu within the
shortcut menu in VB6?
I have tried various ways using my VB6 knowledge and consulted the Knowledge
base, but nothing seems to be clear...
Many thanks in anticipation,
Steve.