Results 1 to 3 of 3

Thread: Vscroll

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Location
    California
    Posts
    115

    Post

    How can I have a msgbox popup with "Up" when someone clicks the up arrow and msgbox "Down" when they click the down button?

    Thanks in advance.

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Post

    Set the form's keypreview prop to true and try this code.
    Code:
    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
        Select Case KeyCode
            Case vbKeyUp
                MsgBox "Up"
            Case vbKeyDown
                MsgBox "Down"
        End Select
    End Sub

  3. #3
    Junior Member
    Join Date
    Apr 2001
    Location
    Richmond, VA
    Posts
    30

    Thumbs down

    I think he meant when you CLICK the UP ARROW on the scrollbar!

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