Jump to content

Change Color of Item in ListBox?(Very Urgent)


Recommended Posts

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 post
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 post
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 post
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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...