how can i create a menu item or sub menu during run time?
- i'm using VB 6.0 Enterprise Edition
Printable View
how can i create a menu item or sub menu during run time?
- i'm using VB 6.0 Enterprise Edition
I don't know the link to the thread Megatron answered this on, but here is the code he gave:
Code:'Make a menu called mnuTest with a SubMenu called mnuSub.
'Make sure that that Index property for it is set to 0.
'Now insert this code into a CommandButton on the Form.
' Add's another menu
Load mnuSub(mnuSub.Count)