Tools Links Login

Dynamic Menu Control (Updated)

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.

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 91 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD3740332000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 15,758 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.