This control, when placed on a form, will allow you to dynamically create menus at runtime. I have included the code for the OCX and a simple test harness.
Original Author: Pete Cozens
Inputs
N/A
Assumptions
This code was developed in VB6 on NT4.
It requires that you add a dummy popup menu with a child menu array item to the form to work (Neither of which will be visible at runtime). Take a look at the View menu in the test harness to see how the dummy menu items should be setup.
Update: You’ll also need to have atleast one other VB menu item at the same level as the ‘dummy’ popup menu, otherwise VB will not allow the dummy to be hidden.
Returns
N/A
Side Effects
None known at this time.
Attachments
File | Uploaded | Size |
---|---|---|
CODE_UPLOAD3740332000.zip | 9/3/2020 3:45:00 PM | 15758 |