listbox CellMouseEnter

I am trying to create a new event of CellMouseEnter for the listbox. It would work the same as MouseEnter for the control itself, but of course would fire when the mouse enters the cell (not the ActiveCell) I’m not sure where to start. Does anyone have an idea of how to do this?

You can do this within the ListBox.MouseMove event.
Just calculate the column with ColumnFromXY and the row with RowFromXY
Make sure that you fire your CellMouseEnter event only if the row or the column has changed.

Create a subclass of the Listbox

Add code to the MOUSEMOVE event, since it is the only event that will indicate the mouse moved (duh :slight_smile: )
Check the X,Y cell values, when it changes fire you CellMouseEnterEvent

DARN… 24 seconds too late :slight_smile:

Thanks y’all!
I will give that a go.