Solved

Change font property of a listbox item

Posted on 2002-03-05
9
333 Views
Last Modified: 2013-12-03
How would I change the font properties of an item in a list to make it bold. Not all the items in a listbox, but just certain items? Thanks,

guidway
0
Comment
Question by:guidway
9 Comments
 
LVL 1

Expert Comment

by:S2
ID: 6842744
I don't think you can do that in the standard listbox, you can create your own listbox using a white picturebox with lables on top, and then simply write the events for the control.
If you neeed more help just ask.
0
 
LVL 1

Accepted Solution

by:
matthewroberts earned 50 total points
ID: 6843505
Try using a listview control. Have a look at this control at:

http://www.mvps.org/vbnet/index.html?code/comctl
0
 
LVL 12

Author Comment

by:guidway
ID: 6850697
To all,

A listview control would be fine. Anything that will accomplish what I need. How do I do it though?

matthewroberts,

I read the info you posted in the link above, but I still don't see a way of doing it the way I needed. Can you post some code (or someone) of how to bold only one item in a listbox or listview control. Thanks,

guidway
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 12

Author Comment

by:guidway
ID: 6851396
Never mind. I figured it out. Thanks for the help!

guidway
0
 

Expert Comment

by:ezmatt
ID: 7451464
hey Guidway, can you please tell me how you ended up doing it, it would be much appreciated.. Code samples would be nice too thanks!
0
 
LVL 12

Author Comment

by:guidway
ID: 7451739
ezmatt,

I will look tomorrow, but I think I scrapped the code I used a while back and no longer have it. I'll look anyway.

guidway
0
 
LVL 12

Author Comment

by:guidway
ID: 7451742
I should have thought and posted it here back then. Give me time to look for it and I'll get back to you
0
 

Expert Comment

by:ezmatt
ID: 7451745
thanks
0
 
LVL 12

Author Comment

by:guidway
ID: 7456301
ezmatt,

I looked for that code and could not find it in my stash. I believe I did trash it. However if I do locate it I'll be sure to post the info for you. My apologies if I can't,

guidway
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question