VB icon

Create a Pop Up Menu from a label or button

Email
Submitted on: 1/2/2015 10:50:00 PM
By: SeeD (from psc cd)  
Level: Not Given
User Rating: By 13 Users
Compatibility: VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 877
 
     MAKE A POPUP MENU APPEAR WHEN YOU CLICK A LABEL OR COMMAND BUTTON! EASY! ONE SIMPLE LINE OF CODE! (o:
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: Create a Pop Up Menu from a label or button
' Description:MAKE A POPUP MENU APPEAR WHEN YOU CLICK A LABEL OR COMMAND BUTTON! EASY! ONE SIMPLE LINE OF CODE! (o:
' By: SeeD (from psc cd)
'
' 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!
'**************************************

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


Other 20 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.