Listbox with DrawMode.OwnerDrawVariable

  • Thread starter Thread starter active
  • Start date Start date
A

active

I created
Public Class MyListBox

Inherits System.Windows.Forms.ListBox

....

and do

Public Sub New()

Me.DrawMode = DrawMode.OwnerDrawVariable

Me.SelectionMode = Windows.Forms.SelectionMode.One

....



I never draw anything in bold but when I select an item the text becomes
bold.

Which is OK.

But when I select another item the previous ones remain bold.

Which is not OK.



Got any idea how I can fix this



thanks
 
Back
Top