Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Horizontal ListView Component

0.00/5 (No votes)
28 May 2006 1  
Component which you can add to your project that allow you to add items horizontal to a ListView component.

Sample Image - ListViewHor.png

Introduction

I had a problem with the free space on my form. I searched for a ListView component which I can use horizontal, instead of vertical. I couldn't find a good component, so.. I made it. By adding this component to your project it allows you to add images with a subscription to the ListView.

How does it works

This component exists of two elements: ListView, HScrollBar. Dependant of the size of the component, the loaded images will be shown.
At the background there is an array where all the images are stored in. Default the first three images are displayed (indices 0, 1 and 2 of the images array). When scrolling the displayed images will move by 1. The items 1, 2 and 3 of the array are displayed.
Furthermore I added some useful functions to the hListView component.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here