Hi all,
i?m doing a form to be Inherited, and inside it has a property that i
create.
that property is one class with several propertys ( simple ones integers and
strings )
And in my Inherited form, the property appears there :D so far so good.
but i need to edit it. so i have create an typeconverter, so that property
to be explandable in design time.
now the problems start.
this property is similar to the font property, every time i change in the
base form it changes in every derived form. except if the derived form has
already changed that property.
But in my class it not works like that. every time i change in the base form
the other forms seems to be changed, but when i do some kind of modification
in a derived form ( ex: move a button and save ) it saves the property
with the parent values ?
can someone help me ???
thks
JSB
joeycalisay - 20 Jan 2005 03:49 GMT
> but when i do some kind of modification
> in a derived form ( ex: move a button and save ) it saves the property
> with the parent values ?
You are having some problem with code generation. Perhaps you need to
provide default values for the sub-properties using either the
DefaultValueAtrribute or the Reset<propertyname> -
ShouldSerialize<propertyname> method pair. Can you provide additional info
with some code? For the mean time read on the following links which can be
helpful in your development:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/c
ustcodegen.asp
http://www.awprofessional.com/articles/printerfriendly.asp?p=169528

Signature
Joey Calisay
http://spaces.msn.com/members/joeycalisay/
> Hi all,
>
[quoted text clipped - 23 lines]
> thks
> JSB