Re: How to change the Selected Item's forecolor in ListBox-URGENT

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I do belive it is possible, though I haven't tried it :) Something
like this code should work, though of course you will have to determine
when to set it, and replace with your own listbox :)

ListItem itm = myList.Items[ myList.SelectedIndex ];
itm.Attributes.CssStyle.Add("color:white");

- Andrew
<no website to plug>
ps. post useful answers, M. this is a webcontrols forum.

.



Relevant Pages

  • Re: Looking up a value using a range
    ... > I have a spread sheet that you plug in a date and then enter another ... The second date is the on I would like to automate. ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Techie help required pls
    ... Pulled the plug and all was well. ... Gander. ... that's why I don't take my wife out. ... Prev by Date: ...
    (uk.people.silversurfers)
  • Re: "horse..." and "when..." posts
    ... SCRuFFy12 ... "Pull the Plug" to respond by e-mail... ... Prev by Date: ...
    (rec.arts.anime.models)
  • Re: OO and Inheritance
    ... sounds like you want to do something with plug ins, ... > know which OO concept or catchphrase I should be looking for! ... Factory: ... Prev by Date: ...
    (comp.lang.perl.misc)
  • Re: installation KB905648: spamfilter in Outlook 2003 cannot be ap
    ... Also if you can read Spanish you might find Lieden's post useful ... Robert Aldwinckle ... Prev by Date: ...
    (microsoft.public.windowsupdate)