>>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...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.