Link to home
Start Free TrialLog in
Avatar of guidway
guidwayFlag for United States of America

asked on

Change font property of a listbox item

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
Avatar of S2
S2

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.
ASKER CERTIFIED SOLUTION
Avatar of matthewroberts
matthewroberts

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of guidway

ASKER

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
Avatar of guidway

ASKER

Never mind. I figured it out. Thanks for the help!

guidway
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!
Avatar of guidway

ASKER

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
Avatar of guidway

ASKER

I should have thought and posted it here back then. Give me time to look for it and I'll get back to you
thanks
Avatar of guidway

ASKER

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