Link to home
Start Free TrialLog in
Avatar of borgtamer
borgtamerFlag for United States of America

asked on

Displaying a Horizontal Scrollbar for a single Column in a VBA ListView

I have a ListView with 2 columns. I want to display a horizontal scrollbar for the first column olny such that I can scroll horizontally through the first column while the 2nd column remains in view in the ListView;.

By seting the widh of the first column > the width of the Listview I get a horizontal scrollbar. However, the scrollbar is being aplied to the ListView as a whole, not to the first column.So I must scroil the ListView to see the 2nd column.

How can I specify a horizontal scrollbar for the first column only?

Thanks in advance.

Joe
ASKER CERTIFIED SOLUTION
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I agree with Rorya. One dirty work around is to use two listviews. The first one has only 1 column and the second one doesn't have Col 1 but has data from Col 2 onwards..

Sid