all groups > dotnet windows forms designtime > april 2006 >
You're in the

dotnet windows forms designtime

group:

ShouldSerialize


ShouldSerialize João Santa Bárbara
4/17/2006 6:51:46 PM
dotnet windows forms designtime:
Hi all
i have 3 forms and the all inherited from each others, and in the base form
i have a custom control with a complex structure property (" MyProperty as
ComplexStructure )
and my problem is, i just want to change this property in the base (form1)
and i want to serialize the code for it, bu in the other 2 forms, the same
code is serialize. is there any way to fix this !?

hi have this method in my object
Private Function ShouldSerializeCompl.... ()
return me.xCom.....IsThereAnyChange
End Function

of course every time i open the designer ( in Form2 and Form3) both detects
the changes that i have made in form1 Control.

thks
JSB



Re: ShouldSerialize G Himangi
5/2/2006 12:00:00 AM
You could try making the ShouldSerializeCompl method virtual and override it
in the derived classes to return False.

G Himangi, Sky Software
http://www.ssware.com
*Shell MegaPack for ActiveX & .Net : Advanced Controls for Drop-In Windows
Explorer GUI for your App.
*EZNamespaceExtensions.Net : Rapid Development of Shell Namespace Extensions
in .Net
*EZShellExtensions.Net : Rapid Development of IE Toolbars, IE Explorer Bars
& Windows Shell Extensions in .Net


[quoted text, click to view]

AddThis Social Bookmark Button