Form1 { public OnOnitialize() { this.OnLoad += new Load(); other control
creation code goes here }
Form2:Form1 { public OnInitiailze() { this.OnLoad += new Load(); other
control creation code goes here. base.OnInitialize(); }
if Form2 calls a base method of its inherited member then it may bind both
events. .
[quoted text, click to view] "KPH" <KPH@discussions.microsoft.com> wrote in message
news:21D174B2-D832-43A0-8D2A-88FA17D36EB1@microsoft.com...
> Hi all,
>
> Assuming I have 2 form controls on my application. First form is parent
> form
> and second form is inheritance form that inherit from first form.
>
> When I want to view designer of second form (inheritance form) it is
> always
> done at load event of first form (parent form). I have test by set form
> visible property at load event of first form to false and then when I load
> the second form the form is invisible. Can anyone explains to me?
>
> I don't need to do load event of first form because sometimes I want to
> add
> new control to second form but it occurs some error. How can I ignore the
> load event of parent form?
>
>
> Thanks,
> KPH
>
>
>