Draglist: A Listbox that lets Users Drag Items from One Position to Another

Forms and Controls
Joe Hart

Version Compatibility: Visual Basic 6

More information:
The Draglist is a listbox that adds the ability for the user to drag the items to a new location. When the user starts dragging an item, an arrow will appear next to the listbox and as the user moves the mouse up and down, the arrow follows. When the user stops dragging, if the arrow is not where the item came from, that item is moved to the location of the arrow. What it is really is a subclassed listbox that uses the API to turn the listbox into a draglist. It is very similar in functionality to the ccrpDragList, but is smaller when compiled, and you have the source code so you can modify it if you wish. Complete documentation is included in a readme.txt file.

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.

Download draglist.zip