Return the Row/Column of a Clicked ListView Item (Part II)

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
The idea for this code originated from Leo Koach. I updated it to handle the case when the user horizontally scrolls the listview and clicks a cell.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: