Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
I haven't tried this, so it might not work, but I'd actually look into overriding the OnPaint method. If there is Text set, just do default (base.OnPaint), otherwise render the InitialText. That way you wouldn't have to worry about handling accidentally saving the InitialText and you'd only have one method to override (rather than a set of events). I.e. this would more clearly separate the text that is initially shown vs. the Text that is bound.
|