Results 1 to 2 of 2

Thread: Shift Mouse Click

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    6
    I tried setting Shift = 1 but that doesn't eem to work.

  2. #2
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Code:
    Private Sub Command1_Click()
        Call Form_MouseDown(vbLeftButton, vbShiftMask, 0, 0)
    End Sub
    
    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
        If Shift Then
            MsgBox ("Shift down")
        Else
            MsgBox ("Shift NOT down")
        End If
    End Sub
    Use that to test it out for yourself. If you were testing with a CONTROL_Click event, the MouseDown event may have registered first...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width