Solved

How to manual  scroll in a listbox

Posted on 1998-09-06
3
493 Views
Last Modified: 2010-04-06
I need to how to scoll at listbox, by using to bottons insted of the scroll bars ?

Thank you
LPD
0
Comment
Question by:lpd
3 Comments
 
LVL 5

Accepted Solution

by:
ronit051397 earned 100 total points
ID: 1338768
Use WM_VSCROLL Message. For example to scroll the list one page down write:
SendMessage(ListBox1.Handle,  WM_VSCROLL,  SB_PAGEDOWN,  0);

0
 
LVL 10

Expert Comment

by:viktornet
ID: 1338769
What ronit told you is exactly right :+)

SendMessage(ListBox1.Handle, WM_VSCROLL, 1, 0);//Do you see the 1..that's how much to scroll at one time...For horizontal scroll use WM_HSCROLL

Regards,
Viktor Ivanov
0
 

Author Comment

by:lpd
ID: 1338770
Thank you, it works very fine

LPD :-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi cmd execution 6 55
Intraweb download file link ? 1 109
How to define IfThen functions in one common unit? 4 44
Installshield for Embarcadero EX 10.1 Berlin 4 18
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now