vijay 0 Posted November 10, 2005 Report Share Posted November 10, 2005 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 Quote Link to post Share on other sites
alwaysvaghu 0 Posted November 10, 2005 Report Share Posted November 10, 2005 hi viju....i m not geettting...there is a drop down list......with some optionso u want o change the color of those option directly...or u want to do that after some event...can u tell me what exaxtly u r goin to perform..the may be i will get Quote Link to post Share on other sites
vijay 0 Posted November 10, 2005 Author Report Share Posted November 10, 2005 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 Quote Link to post Share on other sites
alwaysvaghu 0 Posted November 10, 2005 Report Share Posted November 10, 2005 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 Quote Link to post Share on other sites
vijay 0 Posted November 10, 2005 Author Report Share Posted November 10, 2005 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 Quote Link to post Share on other sites
maelstorm 0 Posted November 10, 2005 Report Share Posted November 10, 2005 I think u can try it with CSS Quote Link to post Share on other sites
vijay 0 Posted November 11, 2005 Author Report Share Posted November 11, 2005 Hi,My DEAR FRND There is No CSS in VBVijay Quote Link to post Share on other sites
Chocolate570 45 Posted November 13, 2005 Report Share Posted November 13, 2005 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. Quote Link to post Share on other sites
sreenivas 0 Posted December 1, 2005 Report Share Posted December 1, 2005 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> Quote Link to post Share on other sites
capg 0 Posted December 1, 2005 Report Share Posted December 1, 2005 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><{POST_SNAPBACK}> Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.