autosize a listbox based on its height in visual basic

The following Visual Basic project contains the source code and Visual Basic examples used for autosize a listbox based on its height. This snippet will adjust the height of a list box so that all its contents appear without a vertical scroll bar.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize