Tools Links Login

Add menu items at runtime! :)

This code adds allows you to add menu item's on your form while you are running it(runtime :)...

Original Author: Erik Tyldum

Assumptions

'Goto the menu Editor!
'Add a menu, and a submenu.
'Name the submenu: 'mnuTest' and set its index property to '0' <- Important!
'Then you click OK!:)
'Add a Command Button, named Command1... and paste my code into it, and

Code

Private Sub Command1_Click()
    Load mnuTest(mnuTest.Count)
End Sub

About this post

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

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.