
Signature
Remove norubbish to reply
> Is there some way that I can underline or bold words in a list box so
> that they stand out??
http://www.vbforums.com/showpost.php?p=2172&postcount=4
This deals with backgrounds, but you can modify to produce other font
effects.
You will notice it isn't that easy and there are issues when using
subClassing in the IDE. You may want to consider using the ListView control
instead of a VB Listbox.
-ralph
Jack Russell - 24 Jun 2009 08:16 GMT
Thanks, as you say somewhat complicated!
>> Is there some way that I can underline or bold words in a list box so
>> that they stand out??
[quoted text clipped - 9 lines]
>
> -ralph

Signature
Remove norubbish to reply
Ralph - 24 Jun 2009 09:38 GMT
> Thanks, as you say somewhat complicated!
For more information look on the web for "owner-drawn listbox" and follow-up
on SubClassing with
http://www.xtremevbtalk.com/showthread.php?t=78306
SubClassing appears painful on first glance, but allows the programmer to
utilize additional messaging that plain VB can't do. Once you start, you'll
are likely to find more and more situations where it will be helpful.
-ralph
Jack Russell - 24 Jun 2009 10:12 GMT
Thanks, I also took a look at Listview, not quite sure how it helps
Jack
>> Thanks, as you say somewhat complicated!
>
[quoted text clipped - 7 lines]
>
> -ralph

Signature
Remove norubbish to reply
Jack Russell - 01 Jul 2009 01:16 GMT
Well I can get this to work but ...
I originally was using a checked list box but that does not support
multi select.
Why does this have to use a checked list box rather than standard (style 0)
Thanks
>> Is there some way that I can underline or bold words in a list box so
>> that they stand out??
[quoted text clipped - 9 lines]
>
> -ralph

Signature
Remove norubbish to reply
>Is there some way that I can underline or bold words in a list box so
>that they stand out??
>
>Thanks
I've always tended to use a Rich Text Box control, then you can control all
aspects of the appearance.
Richard

Signature
http://www.caravanningnow.co.uk
I survived seven years in an Ankh-Morpork public school patronized be
the sons of gentleman. Compared to that, life among the D'regs holds
no terrors, I assure you. - Jingo by Terry Pratchett
Jack Russell - 24 Jun 2009 22:19 GMT
I had thought about that but it would need a big rewrite. One of the
reasons I use a list box is to make it easy to tell which line of text
the user has selected. How could I do that with a text box?
>> Is there some way that I can underline or bold words in a list box so
>> that they stand out??
[quoted text clipped - 4 lines]
>
> Richard

Signature
Remove norubbish to reply
Jack Russell - 24 Jun 2009 22:19 GMT
I had thought about that but it would need a big rewrite. One of the
reasons I use a list box is to make it easy to tell which line of text
the user has selected. How could I do that with a text box?
>> Is there some way that I can underline or bold words in a list box so
>> that they stand out??
[quoted text clipped - 4 lines]
>
> Richard

Signature
Remove norubbish to reply