>>>this.backcolor = this.parent.parent.nbackcolor
>>>this.forecolor = this.parent.parent.nforecolor
>>
>>But the text box doesn't exist at the grid class level. I played around with creating a textbox class with code like you suggested above and removing the default textbox and replacing it with my txtBoxClass at run-time. The only problem is you can't add any code to the textbox events in the form designer because the object gets replaced at run time. Is there any way around that?
>
>But can't you add the code to your (or create a new) textbox class with the code? Also, that's why I thought of the runtime ADDPROPERTY, it might give more flexibilty for a situation like this...
In the init of the grid class a replace the textbox for each column. If any code was added at design time to the textbox it gets replaced doesn't it?
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!