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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top