Hi Jim,
I am writing this from the memory, so it could be wrong.
In the GotFocus method of the texbox try to put
this.SelectedForeColor = this.parent.parent.forecolor
You may want to save this property and restore it in the LostFocus.
>I have a Grid that is a single-column, designed to look a lot like a Listbox (except that I found that using the RecordMark was helpful.
>
>In that Grid I use SetAll to adjust the DynamicBackColor and DynamicForeColor of various lines depending on what they contain.
>
>Works nicely except for the selected cell, which ends up with a blue border line (that's OK by me), a white background (OK for me too) but always a black ForeColor.
>I need the Forecolor to be set the same as it is before selection.
>
>I've used the AfterRowColChange() event, trying to set the selected item's forecolor based on the content (the content is described as a second field of the Grid's RecordSource and I interrogate it in my attempts.
>
>As best I can tell the display is being done from Column1 (i.e. not Text1 under Column1).
>
>Can I accomplish what I need to do?
>
>Thanks
If it's not broken, fix it until it is.
My Blog