August 24th, 1999, 10:30 AM
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.
|
Click to See Complete Forum and Search --> : Scroll Bar August 24th, 1999, 10:30 AM 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. Lothar Haensler August 24th, 1999, 10:37 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |