Yes, this is a problem in the current serialization setup. We had a
discussion with Brian Pepin I believe in this newsgroup at one point
concerning this issue. You may find it via google; perhaps "Pepin" and
"ShouldSerialize". The only solution is to record the correct "default"
values after the base class is constructed, and use those as defaults. I
don't think it will be fixed as it is difficult in the general sense.
Regards,
Frank Hileman
check out VG.net: www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
> I had this thought regarding defaultvalue attribute for properties of
> controls and form inheritance.
[quoted text clipped - 6 lines]
> the said form if its immediate parent form's setting for this property is
> FALSE. Any views?
joeycalisay - 27 Oct 2004 02:40 GMT
Thanks Frank...
> Yes, this is a problem in the current serialization setup. We had a
> discussion with Brian Pepin I believe in this newsgroup at one point
[quoted text clipped - 22 lines]
> > the said form if its immediate parent form's setting for this property is
> > FALSE. Any views?
joeycalisay - 27 Oct 2004 05:55 GMT
Am new to newsgroups, is there a way that I can have access to attachments
of archived messages?
I would like to look at the addin from related post years ago...
> Yes, this is a problem in the current serialization setup. We had a
> discussion with Brian Pepin I believe in this newsgroup at one point
[quoted text clipped - 22 lines]
> > the said form if its immediate parent form's setting for this property is
> > FALSE. Any views?
Frank Hileman - 27 Oct 2004 17:56 GMT
You have to ask. They are not archived anywhere as far as I know. Remind me
and maybe I can dig it up...
Frank
> Am new to newsgroups, is there a way that I can have access to attachments
> of archived messages?
> I would like to look at the addin from related post years ago...
joeycalisay - 19 Jan 2005 06:03 GMT
I've tried this issue once again and was surprised that VS stores the
value of the setting of the immediate base class to be its default
(somewhat comparing the property values for the current component
against the value of an instance of its immediate base class). The
DefaultValue set at the top of the inheritance tree will not be its
default value down the hierarchy.