?
Solved

Change font property of a listbox item

Posted on 2002-03-05
9
Medium Priority
?
361 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

719 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