FindIndexUnderPoint Method (List Box)
Object List Next Object
Defined By: ListBox
Description:
Find the index of the item in the list that is under the point identified by
the x and y coordinates. Returns -1 if no item is found beneath the point.
Declaration:
Function FindIndexUnderPoint(ByVal x As Single, ByVal y As Single) As Integer
Details:
FindIndexUnderPoint would typically be used when handling a mouse event to
find the index of the item in the list that is beneath the x,y coordinate that is
passed to the mouse event handlers.