I have a databound listbox. The data source also has a bit field associated with it, I would like for listbox items that have a bit field value of 1 (true) to show bold and the rest to remain non-bold. Any idea how this can be done or is it not possible?

Also, as a side question, the image attached...its from VS, is there a way to replicate that control? The actual image control, that has tabs and a pin button, close button etc, that lists the controls and data sources? It looks like a tab control with the tabs at the bottom, but I don't know how to replicate that pin button...any ideas?

Recommended Answers

All 2 Replies

To control the way the items are displayed in a listbox you need to set DrawMode to either OwnerDrawFixed or OwnerDrawVariable.
MSDN - Listbox.DrawMode
Not sure how/if this will work with a databound listbox (it should do).

Thanks! I'll check it out!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.