The zero-based index of the item found at the specified coordinates; returns ListBox.NoMatches if no match is found.
This method enables you to determine which item that is located at a specific location within the control. You can use this method to determine which item within the list is selected when a user right-clicks the System.Windows.Forms.ListBox. The location of the cursor can be determined and passed to the x and y parameters of the ListBox.IndexFromPoint(System.Drawing.Point) method to determine which item the user right-clicked the mouse over. You can then display a shortcut menu to the user to provide tasks and features based on the specific item.