vijay Posted November 10, 2005 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 Link to comment Share on other sites More sharing options...
alwaysvaghu Posted November 10, 2005 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 Link to comment Share on other sites More sharing options...
vijay Posted November 10, 2005 Author 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 Link to comment Share on other sites More sharing options...
alwaysvaghu Posted November 10, 2005 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 Link to comment Share on other sites More sharing options...
vijay Posted November 10, 2005 Author 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 Link to comment Share on other sites More sharing options...
maelstorm Posted November 10, 2005 Share Posted November 10, 2005 I think u can try it with CSS Link to comment Share on other sites More sharing options...
vijay Posted November 11, 2005 Author Share Posted November 11, 2005 Hi,My DEAR FRND There is No CSS in VBVijay Link to comment Share on other sites More sharing options...
Chocolate570 Posted November 13, 2005 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. Link to comment Share on other sites More sharing options...
sreenivas Posted December 1, 2005 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> Link to comment Share on other sites More sharing options...
capg Posted December 1, 2005 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}> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now