Automatically Scroll Down/Add Horizontal Scroll Bar to List Box
Version Compatibility: Visual Basic 6, Visual Basic 5
Using of this class called CLBHscroll in real-world applications is very easy. All you need to do is (1) to initialize this class using the Init method which accepts the reference to the list box you want to populate and (2) call the AddItem method of this class to add a new item. The Init method also clears the list box.
The attached can be useful in many real-world situations. For instance, if you perform context search in files, you can use this class to add to a list box at the screen found files as they are found. Our company uses this code in demo applications of the xDir library that allows you to enumerate files and folders in a specified folder and all of its subfolders using various filter criteria (file and folder mask; file size; attributes; date and time of creation, last access and modification, etc.) You can visit our Web-site (www.10Tec.com) to download this and other demos to see how it works.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.