VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Add menu items at runtime :)

by Erik Tyldum (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

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

Assumes
'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

Rate Add menu items at runtime :)

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

Download this snippet    Add to My Saved Code

Add menu items at runtime :) Comments

No comments have been posted about Add menu items at runtime :). Why not be the first to post a comment about Add menu items at runtime :).

Post your comment

Subject:
Message:
0/1000 characters