listview color

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raoul Watson

    #1

    listview color

    ListView1.ListI tems(x).ForeCol or seems to only change the forecolor of the
    FIRST column text. I have a listview where the first column is not visible
    so I would like to be able to change the text color of the second column.

    Could anyone offer some suggestions?

    Thanks!!!


  • Steve Gerrard

    #2
    Re: listview color


    "Raoul Watson" <WatsonR@Intell igenCIA.comwrot e in message
    news:XJBtg.7268 $wZ.1856@trndny 01...
    ListView1.ListI tems(x).ForeCol or seems to only change the forecolor of the
    FIRST column text. I have a listview where the first column is not visible
    so I would like to be able to change the text color of the second column.
    >
    Could anyone offer some suggestions?
    >
    ListView1.ListI tems.Item(x).Li stSubItems(1).F oreColor = vbRed


    Comment

    • Raoul Watson

      #3
      Re: listview color


      "Steve Gerrard" <mynamehere@com cast.netwrote in message
      news:laednahLwr YHbivZnZ2dnUVZ_ sOdnZ2d@comcast .com...
      >
      "Raoul Watson" <WatsonR@Intell igenCIA.comwrot e in message
      news:XJBtg.7268 $wZ.1856@trndny 01...
      ListView1.ListI tems(x).ForeCol or seems to only change the forecolor of
      the
      FIRST column text. I have a listview where the first column is not
      visible
      so I would like to be able to change the text color of the second
      column.

      Could anyone offer some suggestions?
      >
      ListView1.ListI tems.Item(x).Li stSubItems(1).F oreColor = vbRed
      >
      >
      Wow.. I have never seen that before.. Thanks Steve!!


      Comment

      • Rodney Hanz

        #4
        Re: listview color

        That is a new one on me too, I will have to try that sometime

        "Raoul Watson" <WatsonR@Intell igenCIA.comwrot e in message
        news:RFItg.7327 $wZ.1427@trndny 01...
        >
        "Steve Gerrard" <mynamehere@com cast.netwrote in message
        news:laednahLwr YHbivZnZ2dnUVZ_ sOdnZ2d@comcast .com...
        >>
        >"Raoul Watson" <WatsonR@Intell igenCIA.comwrot e in message
        >news:XJBtg.726 8$wZ.1856@trndn y01...
        ListView1.ListI tems(x).ForeCol or seems to only change the forecolor of
        the
        FIRST column text. I have a listview where the first column is not
        visible
        so I would like to be able to change the text color of the second
        column.
        >
        Could anyone offer some suggestions?
        >
        >>
        >ListView1.List Items.Item(x).L istSubItems(1). ForeColor = vbRed
        >>
        >>
        Wow.. I have never seen that before.. Thanks Steve!!
        >
        >

        Comment

        • Randy Birch

          #5
          Re: listview color

          These methods are for VB6 only. The VB5 control does not have the
          listsubitems collection.

          --

          Randy Birch
          MS MVP Visual Basic


          Please reply to the newsgroups so all can participate.




          "Rodney Hanz" <rodneyhanz@aus tin.rr.comwrote in message
          news:CmPtg.1334 $78.846@tornado .texas.rr.com.. .
          That is a new one on me too, I will have to try that sometime

          "Raoul Watson" <WatsonR@Intell igenCIA.comwrot e in message
          news:RFItg.7327 $wZ.1427@trndny 01...
          >
          "Steve Gerrard" <mynamehere@com cast.netwrote in message
          news:laednahLwr YHbivZnZ2dnUVZ_ sOdnZ2d@comcast .com...
          >>
          >"Raoul Watson" <WatsonR@Intell igenCIA.comwrot e in message
          >news:XJBtg.726 8$wZ.1856@trndn y01...
          ListView1.ListI tems(x).ForeCol or seems to only change the forecolor of
          the
          FIRST column text. I have a listview where the first column is not
          visible
          so I would like to be able to change the text color of the second
          column.
          >
          Could anyone offer some suggestions?
          >
          >>
          >ListView1.List Items.Item(x).L istSubItems(1). ForeColor = vbRed
          >>
          >>
          Wow.. I have never seen that before.. Thanks Steve!!
          >
          >

          Comment

          • Steve Gerrard

            #6
            Re: listview color


            "Randy Birch" <rgb_removethis @mvps.orgwrote in message
            news:44b8591e$0 $1604$c3e8da3@n ews.astraweb.co m...
            These methods are for VB6 only. The VB5 control does not have the
            listsubitems collection.
            >
            Party pooper. :)




            Comment

            • Dean Earley

              #7
              Re: listview color

              Randy Birch wrote:
              These methods are for VB6 only. The VB5 control does not have the
              listsubitems collection.
              Although you can do custom drawing but it requires a lot more effort.
              We use the VB5 versions for XP styles.

              --
              Dean Earley (dean.earley@ic ode.co.uk)
              i-Catcher Development Team

              iCode Systems

              Comment

              Working...