0% found this document useful (0 votes)
150 views1 page

Creating Popup Menu

A popup menu, also called a context menu, is a list of commands that can be invoked anywhere on an interface using a mouse down action. It is created for each individual object, unlike a dropdown menu which is available only in the menu bar. Popup menus are called using the PopupMenu function in Visual Basic and hide their name on the interface, whereas dropdown menus always display in the menu bar. Popup menus use separate menus for each object while dropdown menus use a common menu.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views1 page

Creating Popup Menu

A popup menu, also called a context menu, is a list of commands that can be invoked anywhere on an interface using a mouse down action. It is created for each individual object, unlike a dropdown menu which is available only in the menu bar. Popup menus are called using the PopupMenu function in Visual Basic and hide their name on the interface, whereas dropdown menus always display in the menu bar. Popup menus use separate menus for each object while dropdown menus use a common menu.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Creating popup menu

It is also a list of commands that can be invoked anywhere on the interface by using the
mouse down action. It may be created for the each object on the interface while the
dropdown menu is available only on the menu bar.

Popumenu calls by the popupmenu function into visual basic. It hides the its basic name on
the screen or interface where as the dropdown menu always displays on the menu bar.
Popup menu is created with the same process like dropdown menu.

It is also called context menu and while the menu available on the menu bar is called
dropdown menu.

Popup menu uses separately for each object on the interface while the dropdown menu
uses commonly for each object on the interface.

How does it invoke on the interface

Code here

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)


If Button = vbRightButton Then
Text1.Enabled = False
PopupMenu mnuedit
Text1.Enabled = True
End If
End Sub

Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)


If Button = vbRightButton Then
Text1.Enabled = False
PopupMenu mnuedit
Text1.Enabled = True
End If

End Sub

You might also like