473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Change font of specific item in listbox?

Is it possible to bold specific items within a listbox?

Thanks!
Nov 20 '05 #1
2 14526
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: kmunderwood | last post by:
I am having trouble changing the font size when extracting xml into an html web page. I think it can be done so many ways, that my searches bring up examples that I am not familiar with. I am a...
1
by: honeybee | last post by:
How to get the item value from a specific Item Index in the listbox?
2
by: Alpha | last post by:
How do I change the selected item in a listbox according to a Combox's selected item on the same form? The Combox is from a different table in the same dataset as the Listbox uses. Combox's...
1
by: Tao | last post by:
hi. Group, Does somebody here know how to change font (including font, font size) in tooltip. thanks
5
by: karen987 | last post by:
I have alist box, which has a standard font. I want to make it fit into a smaller column thus i need to change the font size, i'd like a font size 10, maybe in Verdana font. I tried using my CSS...
0
by: Meera | last post by:
How to write a macro for the following purpose. 1.Search the lines start with "//*"in CSharp file . 2.Change font color of that lines. I wrote the following code Sub ChangeFontColor() Dim...
0
by: sennopati | last post by:
Hello All... How to change font format in my project without change font format property in all object? thx
5
by: _Who | last post by:
I spent all day yesterday trying different things. Something has happened so I can't change font size. I have a table and in the first cell I have only text. I tried using the cell's Style...
3
by: reyo | last post by:
Hi, i design a dynamic web page.infact it will be a css generator. i have a question about visited link. i want to change color,font-size,font-weight etc. of a link when it is visited. when a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.