View Full Version : dot net function
private void Form1_Load(object sender, System.EventArgs e)
Why we are using object sender and System.EventArgs e as a parameter?
What i want to ask is what is the exact use of it?
hello
Web Forms server controls follow a standard pattern for handling information relevant to each event, which is made available to the designated event handler. By convention, all events pass two arguments: an object referencing the source that raised the event, and an event object containing data for the event.
The second argument is usually of type System.EventArgs, but for control events that generate data, is of a type specific to that control.
For more info on event arguments, see Web Forms Events and Handlers (http://aspalliance.com/aspxtreme/webforms/webformseventmodel.aspx)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.