If I recall correctly, I set backcolor and forecolor on the LostFocus/GotFocus of the textbox, but I forgot all the details. I probably posted this info (should be somewhere around 2000, I think).
I may search tonight for this message.
>Naomi --
>
>Controlled by what properties?
>
>I have tried setting SelectedBackColor and SelectedForecolor for my textbox, but they have no effect that I can see.
>
>It seems that HighlightBackColor works, BTW, but not HighlightForeColor
>
>
>>>I'm trying to set the highlight for the selected row in a grid to have white characters on a blue background. I have set this as follows
>>>
.HighlightStyle = 2
>>>.HighlightBackColor = RGB(0,0,255)
>>>.HighlightForeColor = RGB(255,255,255)
>>>This works fine, except when the the user has selected a cell ... in which case, I get the correct back color (blue), but the forecolor, for the selected cell only, turns to black (making it essentially unreadable).
>>>
>>>It appears that SelectedItemBackColor and SelectedItemForecolor are not relevant here.
>>>
>>>What am I missing?
>>>
>>>Thanks in advance
>>
>>Right. They are controlled on the cell's level.
If it's not broken, fix it until it is.
My Blog