K
Karen Grube
Hi!
I'm working on an ASP.Net page that has our company logo and a colored
banner to customize the appearance. The page also includes an asp listbox
control. However, the colors I see inside the listbox when your cursor is on
an item as well as the colors of the scrollbarand the box's border all seem
to be just the standard windows colors. On msdn, I located a page that
showed how to set
listbox1.selecteditembackcolor [= ncolor ]
but the language was Foxpro and it didn't work in the code behind a Web
Form. I've even found some information on using styles (or CSS Style
Sheets) to change the attributes of listboxes. I have successfully change
the background color of the entire box itself by setting the color within the
style in the html portion of the code. The problem is that I can't locate
the correct syntax or properties to change this specific item! I realize
it's probabaly just a single little line of code, but I sure can't figure it
out.
I know the phrase "All I want to do is . . ." is highly overused, but gosh!
This shouldn't be that hard! Why isn't all this stuff part of the listbox
properties?
Any guidance you can give me would be greatly appreciated. I've been
researching this for about four hours, and it's really getting frustrating
not being able to find it.
Thanks!
I'm working on an ASP.Net page that has our company logo and a colored
banner to customize the appearance. The page also includes an asp listbox
control. However, the colors I see inside the listbox when your cursor is on
an item as well as the colors of the scrollbarand the box's border all seem
to be just the standard windows colors. On msdn, I located a page that
showed how to set
listbox1.selecteditembackcolor [= ncolor ]
but the language was Foxpro and it didn't work in the code behind a Web
Form. I've even found some information on using styles (or CSS Style
Sheets) to change the attributes of listboxes. I have successfully change
the background color of the entire box itself by setting the color within the
style in the html portion of the code. The problem is that I can't locate
the correct syntax or properties to change this specific item! I realize
it's probabaly just a single little line of code, but I sure can't figure it
out.
I know the phrase "All I want to do is . . ." is highly overused, but gosh!
This shouldn't be that hard! Why isn't all this stuff part of the listbox
properties?
Any guidance you can give me would be greatly appreciated. I've been
researching this for about four hours, and it's really getting frustrating
not being able to find it.
Thanks!