Hi!

If someone is still wondering (and I didn't find one satisfying answer anywhere and setting hideselection=false also didn't work ):

If you don't want your listview to turn the background color of a selected listviewitem to gray when the listview loses focus, then put this into your subclassed listview:

VB Code:
  1. Protected Overrides Sub DefWndProc(ByRef m As System.Windows.Forms.Message)
  2.         If Not m.Msg = 8 Then MyBase.DefWndProc(m)
  3.     End Sub

As I figure, this traps the message that is responsible for it.

Although I really don't know why it is so difficult to find a list of all the messages (and their relating codes) on the net (and I didn't find that one, too)

Anyhow, that works for me now

Regards!