I haven't done this, but I think you could likely accomplish this by setting the DefaultValue attribute of the control you're extending to the string you're causing to be displayed. When the default value matches the current value, nothing gets serialized to the .resx file (or to the code).
Given that I don't know what kind of control you're extending, I wonder if it make more sense to implement a new property that's displayed at design time, rather than stomping on the extended control's Text property. Unless you've done something to prevent the user from changing the Text of the extended control, what you're doing could cause confusion when you overwrite that value with your value. At 10:35 AM 11/29/2005, Eames, Andrew wrote >My ExtenderProvider has a side effect of setting the "Text" property of >the control that it extends. However this is really only for display >purposes at design time and I don't want the Text property to be >serialized out to the .resx file. Anyone got any ideas as to how I could >best achieve this? > Andrew J. Merrill / Analytical Software Corp =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
