>I also added some code to our cGridTextbox (unfortunately, I had to modify the MereMortals class for this). I added nBackColor and nForeColor properties to this textbox and I have:
>
>>this.nBackColor = this.BackColor
>this.nForeColor = this.ForeColor
>
>this.BackColor = this.Parent.Parent.HighlightBackColor
>this.ForeColor = this.Parent.Parent.HighlightForeColor
>
>
>and restore them back in LostFocus. Seems to work nicely.Nadya,
I don't know MM but normally what you do with any commercial or 3rd party framework is you subclass it into an intermediate class level. Then you modify your intermediate cGridTextbox, not the framework's bases class.
This way, if and when the framework gets updated, it does not overwrite your changes. Furthermore, your intermediate class inherits all their changes, but if you don't like one of them or it messes your apps, you can allways override it at the intermediate level, therefore not affecting your app-specific instances.
HTH