You have to call the form's mouse up event from the label control's mouse up event
Try this:
Code:
' Pretend this is your form code to make the popup menu appear
' when the user right-clicks:
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
Me.PopupMenu mnuHello
End If
End Sub
' But when they right click the label, the Form_MouseUp event
' doesn't fire, so you have to call it yourself (and pass the
' parameters along...
Private Sub Label1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
Call Form_MouseUp(vbRightButton, Shift, X + Label1.Left, Y + Label1.Top)
End If
End Sub
[Edited by seaweed on 11-03-2000 at 06:42 PM]