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 / Design Time / June 2004

Tip: Looking for answers? Try searching our database.

Get the component's form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nelson FANECO - 12 Jun 2004 15:06 GMT
Hi,

I have a component witch have to execute some tasks when the form is loading
but i can't tell my component to do this because i don't know how to
eventhandler the load event form.

Can you help me ?

Regards

Nelson FANECO
France
Rhett Gong [MSFT] - 14 Jun 2004 08:40 GMT
Hi Nelson,
Generally, to eventhandler the load event, follow these steps:
1> click the form
2> press F4 to go to the Properties Window.
3> click the Events button (that thunder button)
4> in the Behavior category, you will find the Load event.
5> double click the Load event, you will have following line added in your source
code(C#)
//--------------------------------------
this.Load += new System.EventHandler(this.Form1_Load);
//.......
private void Form1_Load(object sender, System.EventArgs e)
{
}
//----------------------------------------
Please feel free to let me know If you have anything unclear on this subject.  

Best regards,
Rhett Gong [MSFT]
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.
Nelson FANECO - 14 Jun 2004 10:31 GMT
Thanks a lot
Nelson FANECO

> Hi Nelson,
> Generally, to eventhandler the load event, follow these steps:
[quoted text clipped - 19 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Please reply to newsgroups only. Thanks.

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.