I think that you are going to need to have code assigned to each control on
that form to capture the mousedown event when you click on a part of the
form occupied by a control. For instance, here is the code for the form:
Private Sub UserForm_MouseDown(ByVal Button As Integer, ByVal Shift As
Integer, ByVal X As Single, ByVal Y As Single)
If Button = 1 Then
MsgBox "You clicked the left button"
ElseIf Button = 2 Then
MsgBox "You clicked the right button"
But as you probably already know, this event does not get fired if you click
in the region of a control on that form.
Maybe Stephen (or someone) has a really cool trick that can do what you
Jennifer A. Campion
MCSD, MCSE, MCT, MVP
> Could anybody tell me if it is possible to capture a mousedown event from
> anywhere on a userform. In essence what i am trying to do is get a popup
> menu to popup if a user rightclicks anywhere on the userform even over
> other controls.