Results 1 to 5 of 5

Thread: Listview and colored text ???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    St-Élie d'Orford, Quebec, Canada
    Posts
    133
    Hi,

    someone's got to know this one... All I want to do is display a bunch of things in a listview with some items having their text in different colors. I searched in :

    listview.listitems("MyKey"). ???

    and found nothing related to what I'am looking for except the TEXT property.

    Like I said, I certainly am not the only one of us who wanted to do this but maybe I'am the only one NOT knowing that it can't be done... So please if it's the case let me know :-)

    Thanks all !!!

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    Use the ForeColor Property.
    Code:
    ListView1.ListItems(1).ForeColor = vbBlue
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    St-Élie d'Orford, Quebec, Canada
    Posts
    133

    Angry

    I would say there is no such thing as a forecolor property in the listitems... it doesn't exist !!!

    Any other suggestions...

  4. #4
    Addicted Member S@NSIS's Avatar
    Join Date
    Aug 2000
    Location
    Stoke-On-Trent, England
    Posts
    243

    Question Yes it does!!!!? (VB6 only????)

    The ForeColor property is exactly as gwdash says:
    Code:
    ListView1.ListItems(1).ForeColor = vbBlue

    It is definately there in VB6
    Web/Application Developer
    VB6 Ent (SP5), Win 2000,SQL Server 2000

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    St-Élie d'Orford, Quebec, Canada
    Posts
    133
    VB6 !"$!?$%*%&(&?&*&%!/%"/%/"%!|"?%$*%&(*&%(

    guest what guys, I'am using VB5.
    Thank, I guest the case is closed now...

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