How make item in listbox selected when mouse over it

  • Thread starter Thread starter Nang, Huynh Tan
  • Start date Start date
N

Nang, Huynh Tan

Hi all,
When mouse move over the item I get the position of mouse anh then get index
of item.
When listbox control have scroll bar, how can I get i temin mouse position.
Please tell me!
Thank in advance.
 
Hi,

The listbox mousemove event e.x and e.y will give you the x and y
coordinates for the mouse adjusted for the scrollbar value. You could also
use the listbox mouseposition property.

Dim pt As Point = ListBox1.MousePosition

Ken
 
Back
Top