Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is E As EventArgs

Status
Not open for further replies.

adugenet

Technical User
Feb 24, 2007
48
US
In many asp.net Sub routines there is a "(Sender As Object, E As EventArgs)" - what does this mean?

I kind of know what sender is : the object that triggers the event but what is the purpose of EventArgs "E" ? can you give me an example or explain it to me

Why does it seem to be necessary in some places but not in others?
thanks
 
The article says: "This class contains no event data; it is used by events that do not pass state information to an event handler when an event is raised"

What does doesn't pass state info to an event handler mean? Whether the object is in initialize,..,load,..,unload stage?

Thanks.
 
Some events have specific event arguements, meaning specific variables assosciated with the event and control that raised the event. In other isntances, there is no specific variables needed or the event fires with a gerneric eventhandler, in which case, the generic EventArgs is used.

I hope that didn't sound too confusing..

Cheers,

G.


Oxigen - Next generation business solutions
-----------------------------
Components/Tools/Forums/Software/Web Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top