Hi Linda,
Thanks for your help with this issue.
> You have mentioned "The vendor has changed the default value for
> Calendar.BackColor property" in your first message. How did the vendor
> change the default value for the Calendar.BackColor property within the VC
> class?
The Calendar property is a DateEditMonthCalendar class which is part of the
vendor components package. They changed the default value of the BackColor
property to SystemColors.Control from SystemColors.Window in the
DateEditMonthCalendar class in their latest revision.
> If the Calendar property in the VC class is not overridable, I don't think
> we can change the default value of the nested properties of the Calendar
> property from within the MyVC class.
That's too bad there's not a way to override the default values for nested
properties in a derived class without overriding the parent property itself.
It would be nice if ShouldSerialize and Reset could be modified to work with
nested properties. I would appreciate it if you could pass this on as a
request for future consideration.
Thanks again for your help.
--
Gregg Walker
Linda Liu[MSFT] - 14 May 2008 06:56 GMT
Hi Gregg,
Thank you for your reply!
I understand your concern. Although there's no way to override the default
value of the BackColor property of the Calender property in the MyVC class
if the Calendar property defined in the VC class is not overridable, we can
change the initial value of the Calender.BackColor property in the MyVC
class's constructor.
Ok, no problem. I will pass your feedback to our product team for future
consideration.
If you have any other questions in the future, please don't hesitate to
contact us. It's always our pleasure to be of assistance!
Sincerely,
Linda Liu
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.
eschneider - 23 Jul 2008 22:13 GMT
You should be able to shadow the property "new" in C# or "shadows" in VB.
Then change the attributes as you like.
Schneider
> Hi Gregg,
>
[quoted text clipped - 25 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.