Article ID: 171209
Article Last Modified on 5/13/2003
Option Explicit
Dim oMnu As Object
Private Sub UserControl_MouseDown _
(Button As Integer, Shift As Integer, X As Single, Y As Single)
Select Case Button
Case vbRightButton
If Not oMnu Is Nothing Then
PopupMenu oMnu
End If
End Select
End Sub
Public Sub newMenu(mnu As Object)
Set oMnu = mnu
End Sub
Indent Caption Name none "&File" "FileMenu" 1 "&Test" "FileMenuTest"
Option Explicit
Private Sub Form_Load()
PopupMenuCtl1.newMenu FileMenu
End Sub
Additional query words: KBCONTROL KBCTRLCREATE kbIDE kbVBp kbdsd kbDSupport kbVBp500bug kbVBp600bug
Keywords: kbbug KB171209