Multi colored listbox

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

    #1

    Multi colored listbox

    Hi,


    Can I change color for each row in listbox???

    Thanx!


  • Larry Lard

    #2
    Re: Multi colored listbox


    Domac wrote:[color=blue]
    > Hi,
    >
    >
    > Can I change color for each row in listbox???[/color]

    Yes. Look in the documentation for the ListBox.DrawMod e property.

    --
    Larry Lard
    Replies to group please

    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Multi colored listbox

      "Domac" <dd@dd.cc> schrieb:[color=blue]
      > Can I change color for each row in listbox???[/color]

      You may want to use a listview or treeview control instead.

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      • GhostInAK

        #4
        Re: Multi colored listbox

        Hello Herfried K. Wagner [MVP],

        How can you say that? Domac gave no indication of the use or purpose of
        what it's doing.. just simply "Can such-n-such be done?". How can you possibly
        suggest an alternative control if you dont know what the control is being
        used for? And don't give me that "a listview or treeview is always better"
        crap. The listbox, listview, and treeview all have their appropriate uses.

        -Boo
        [color=blue]
        > "Domac" <dd@dd.cc> schrieb:
        >[color=green]
        >> Can I change color for each row in listbox???
        >>[/color]
        > You may want to use a listview or treeview control instead.
        >[/color]


        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: Multi colored listbox

          "GhostInAK" <ghostinak@gmai l.com> schrieb:[color=blue]
          > How can you say that? Domac gave no indication of the use or purpose of
          > what it's doing.. just simply "Can such-n-such be done?". How can you
          > possibly suggest an alternative control if you dont know what the control
          > is being used for?[/color]

          Huh? What's the problem? I just showed an alternative which requires less
          code because the functionality the OP wants to archieve is already
          predefined. Neither you nor I exactly know the exact scenario the OP is
          talking about.
          [color=blue]
          > And don't give me that "a listview or treeview is always better" crap.[/color]

          I don't know why you have the perception that I would give an answer like
          this.
          [color=blue]
          > The listbox, listview, and treeview all have their appropriate uses.[/color]

          ACK.

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>

          Comment

          Working...