Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » General

Post new topic   Reply to topic
Menu editor
View previous topic :: View next topic  
Author Message
robertlees
Newbie


Joined: 19 Sep 2005
Posts: 22
Location: Sydney, Australia

PostPosted: Apr 8th, 2006 08:28 PM    Post subject: Menu editor Reply with quote

How can I create a popup menu that appears when a button is pressed.
Back to top
View user's profile Send private message
Victor Egbe
Newbie


Joined: 23 Mar 2006
Posts: 4
Location: Abuja, Nigeria

PostPosted: Apr 11th, 2006 07:35 AM    Post subject: popupMenu Reply with quote

In VB6 you can issue the popupmenu command against any menu item that has submenus.

Say you have a File menu named mnuFile.

if this File menu has sub-menus:
...New
...Print
...Setup
...Exit

In your command_click issue the popupMenu command as follows:

Private Sub Command1_Click()
PopupMenu mnuFile
End Sub

The menu items New, Print, Setup, Exit will popup beside the command button.

Enjoy

Vie
@Abuja, Nigeria
_________________
Sin lies at the door...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic