By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,283 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,283 IT Pros & Developers. It's quick & easy.

Change font of specific item in listbox?

P: n/a
Is it possible to bold specific items within a listbox?

Thanks!
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello,

"Eric" <er****@cfl.rr.com> schrieb:
Is it possible to bold specific items within a listbox?


Have a look at the ListView control and its 'View' property.

- or -

You will need to create an ownerdrawn ListBox[1].

[1] http://www.codeproject.com/cs/combobox/

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

P: n/a
Not that complicated, just owner-draw the listbox, or... as Herfried says,
use a ListView instead, with the View property set to Details, one column
header with the columns set to invisible then there's a property on a
listitem to change it's font.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"
"William Ryan" <do********@nospam.comcast.net> wrote in message
news:#a*************@TK2MSFTNGP09.phx.gbl...
: To do that, I think you are going to have to write a custom control...
: "Eric" <er****@cfl.rr.com> wrote in message
: news:02****************************@phx.gbl...
: > Is it possible to bold specific items within a listbox?
: >
: > Thanks!
:
:
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.