Nick,
With all the possibilities, you could be getting into a deep pit here. I suggest you specify a hook interface that you support. Your class will pass color information to the specified method/property of the Container. Then developers could implement that information anyway they wanted at the container level.
Just my $0.02.
>>>Hi,
>>>
>>>I want to change the forecolor on a textbox which is placed in a container which again is placed in an grid.
>>>
>>>If the value is >= 5 the forecolor should change to RED.
>>>
>>>Is this possible ?????
>>
>>Yes. Have the DynamicForeColor of the Grid.Column call a function that not only returns a valid color but sets the Textbox ForeColor as well. You can create a grid class with a special function for that or call a form level method.
>>
>>HTH.
>
>I can add such functionality to my
GridHighlighter class.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao