views:

629

answers:

1

Hello, i'm using OwnerDrawFixed as a DrawMode for the custom ListBox control in my WinForms app.

I want to repaint the background (or do some other action) of the ListBoxItem when the user hovers over the listbox item, that is, at the MouseMove...

DrawItemState.HotLight never works for the ListBox, so i wonder how to emulate it, how to workaround this problem.

Thanks

A: 

Have a look at this FAQ

adatapost
These are only the basics (i know that:))! I need to paint the listbox item when mouse pointer is moved over the item (not when it's selected/has focus).
beaver