Results 1 to 5 of 5

Thread: text color help

  1. #1
    sbatta
    Guest

    Angry text color help

    Hi! I was looking for some help about text color and caught your site. I am working on a project where the text in between two fields from a table retrieved by SQL should be shown in different color.
    strsql = "select field1 & "" some text"" & field2 as field from table"

    the result is put in a list box and i have to change the color of "some text". How is this possible? Any help?

    My email: [email protected]

    your kind advice is very much appreciated.

  2. #2
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    What is wrong with using the listbox's forecolor property.

    i.e. Listbox.ForeColor = vbRed.

    Mega.
    "If at first you don't succeed, then skydiving is not for you"

  3. #3
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    Here is a suggestion. It's a very simple example using an RTF box.

  4. #4
    sbatta
    Guest

    listbox text color

    I tried all the methods but couldn't succeed. Each listbox item should be "some text-redtext-sometext". normally listbox doesn't have these capabilities.. but is there a workaround...

  5. #5
    Addicted Member
    Join Date
    Jul 2001
    Location
    Germany, BW
    Posts
    157

    Arrow

    something like that?

    -> Text redtext othertext ??

    no idea!

    cya
    Old enough to know better,
    but young enough to don't give a ****!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width