VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Auto Scroll ListBox/MSFlexGrid

milevets  (1 Submission)   Windows API Call/Explanation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Ever wanted to automatically scroll (vertical) ListBox or MSFlexGrid? Below is a quick solution and it's especially handy when you cannot use object.TopRow (due to variable row height, etc).
Happy Coding

API Declarations
'Import Win32 API function
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
'Constant
Const WM_VSCROLL = &H115
Const SB_BOTTOM = 7

Rate Auto Scroll ListBox/MSFlexGrid (8(8 Vote))
Auto Scroll ListBox/MSFlexGrid.bas

Auto Scroll ListBox/MSFlexGrid Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters