Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>>>>>How to select the Listbox highlight color of my choice.??
>>>>>>>thanks
>>>>>>
>>>>>>Set
>>>>>>SelectedItemBackColor Property
>>>>>>
>>>>>>and
>>>>>>
>>>>>>SelectedItemForeColor Property
>>>>>
>>>>>listbox: selecteditemforecolor or selecteditembackcolor are my choices.
>>>>
>>>>Yes, exactly.
>>>
>>>It's being set somewhere else and not in my class definition.
>>>Is there not a property to set the listbox's plain old backcolor?
>>
>>For highlighting the current item the above mentioned properties should be used. What exactly do you mean by plain old BackColor?
>
>Just the backcolor of the listbox whether there are items in it or not.
Does itembackcolor and itemforecolor do what you need?
they set the background and text colors for the list box and then you can use the selecteditem properties.
Sammie
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement