Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Don't need to do load event from inheritance form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KPH - 30 Sep 2004 04:25 GMT
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
- 30 Sep 2004 06:48 GMT
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. .

> Hi all,
>
[quoted text clipped - 15 lines]
> Thanks,
> KPH
KPH - 30 Sep 2004 07:53 GMT
Hi,

I try by your example but it's not work because I don't know the
OnInitialize() and Load() function come from. Would you please tell me more
information or details that help me solve this problem.

Thanks,
KPH

> Form1 { public OnOnitialize()  { this.OnLoad += new Load(); other control
> creation code goes here }
[quoted text clipped - 24 lines]
> > Thanks,
> > KPH

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.