CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Scroll Bar

  1. #1
    Guest

    Scroll Bar

    How do i know whether I have pressed the top scroll bar button or the buttom scroll bar button in a Scroll bar Control. Please Help.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Scroll Bar

    trap the Value property in the VScroll-Change-Event.
    it will tell you the new position between vscroll.min and vscroll.max.

    private Sub VScroll1_Change()
    static iLastVal as Integer
    If VScroll1.Value >= iLastVal then
    MsgBox "down"
    else
    MsgBox "up"
    End If
    iLastVal = VScroll1.Value

    End Sub






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

Featured