Solved

Change font property of a listbox item

Posted on 2002-03-05
9
345 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 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Technology Partners: 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!

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

752 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