Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Color in Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00244921
Message ID:
00245280
Views:
23
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform