Jump to content

Change Color of Item in ListBox?(Very Urgent)


vijay

Recommended Posts

HiAll :) Is it possible to Change Color of Item in ListBox by some eventIn Visual Basic?Color of Indivisual Item in ListBoxIf u find Solution then plz tell me.RegardsVijay

Link to comment
Share on other sites

Hi,Suppose we have ListBox Containing Lien Following Like ThisRedBlueYellowetcSo I want In list Box's Item's Color WhatEver it's namein short I need Every Item in List box has Different ColorCan Any one Do this in VB?RegardsVijay

Link to comment
Share on other sites

hi viju...In VB.....i dont remmeber too much but still i have some shadows...u will first put the combo box...now in coding....Name of that Combo Box.fontcolor.colornamecolorname is in following format..and limited color is allowed,,,,vbBlack,vbRed,vbBlue etc.....plz try...i dont remeber in much more deepi dont have vb in my pc here now :)

Link to comment
Share on other sites

Hi,Ya I will check with that But it Has no propertyof Color in deathBut List Box has this PropertySo It will change All Items In TextBoxSo What I Do If I want To change Color of Indivisual Item?Now Tell meVijay

Link to comment
Share on other sites

I think he's saying that because this is the vbscript section, not the visual basic section.But no, i don't think that visual basic can do that. It's been a while since i've used it, though.

Link to comment
Share on other sites

  • 3 weeks later...

yes u can do it example: <select size="1" name="D" tabindex="1" STYLE="color: #ffffff; font-family:Arial,Helvetica,sans-serif; font-weight: lighter; font-size: 12px; background-color: #72A4D2;"> <option value="" > blue colored back ground </option> <option value="" > colored back ground </option> </select>

Link to comment
Share on other sites

Sreenivas,Your code is really helpful, but according to Vijay's question he says each item should be in different color I did tried that, but color is same for all items, so is it possible to get each item different color?Thanks,Capi

yes u can do it example: <select size="1" name="D" tabindex="1" STYLE="color: #ffffff; font-family:Arial,Helvetica,sans-serif; font-weight: lighter; font-size: 12px; background-color: #72A4D2;">                      <option value="" > blue  colored back ground    </option>                    <option value="" >  colored back ground    </option>                                  </select>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...