PDA

View Full Version : Which control does this?



lifeson
07-01-2008, 07:48 AM
Is there a VBA control that allows you to create a horizontal row of images to be displayed on a user form that when there are more images than the width of the form the control has a horizontal scroll bar?

I have tried listview but that adds a vertical scroll bar when there are more images than the listview can display on one line.

Andy Pope
07-01-2008, 08:09 AM
How about a frame to hold the images.

This has a Scrollbars property which you can set to horizontal.
The use the scrollwidth property, set to a value beyond the right most image position, to enable scrolling.

lifeson
07-01-2008, 10:52 AM
Usefull tip Andy, thanks
I just found that listview can actually do it (I think) by setting the arrange property to lvwAutoLeft
This appears to work with testing.