VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Create a Pop Up Menu from a label or button

by SeeD (22 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (13 Votes)

MAKE A POPUP MENU APPEAR WHEN YOU CLICK A LABEL OR COMMAND BUTTON! EASY! ONE SIMPLE LINE OF CODE! (o:

Assumes
'OK, follow these instructions ' 1) Open a new project in your Vb, and make 2 new forms. ' 2) On form number 2, make a menu with as many submenus as you'd like. ' 3) Now you should have 2 new forms. Form 1 should be completely blank, 'and form 2 should have a menu bar with some stuff. (You don't have to make 'these practice menu items work yet.) ' OK, now just put the code below into a label or command button!

Rate Create a Pop Up Menu from a label or button

Form2.PopUpMenu Form2.Menu1, 1
'In place of Menu1 put your menus name, as in file.
'u should have no problems. Thanks

Download this snippet    Add to My Saved Code

Create a Pop Up Menu from a label or button Comments

No comments have been posted about Create a Pop Up Menu from a label or button. Why not be the first to post a comment about Create a Pop Up Menu from a label or button.

Post your comment

Subject:
Message:
0/1000 characters