| Description: This very simple code allows you to have a popup menu appear when you click on a label or a command button, or just about anything you want! Trust me, it's awesome if you are looking to create really cool projects. Just one line of code 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! Form2.PopUpMenu Form2.Menu1, 1 'In place of Menu1 put your menus name, as in file. You should have no problems. Thanks |
Create a menu from a label or Command Button |
Express News India | Freelance ecommerce web development India