I know they have something to do with delegates. I've tried but I still don't comprehend how to use those either. I know a little about event handlers but what I really want to know is how I can use plain old eventargs that are part of most methods. example below
void Page_Load(object sender, EventArgs e)
{
myText.Value = "Hello World!";
}
Thanks for your time & consideration, I am just trying to be the best coder I can be.
Mike
EventArgs classes are used as data carriers when raising events. They typically contain information that is related to the event being raised.
Many events use the EventArgs class, which contains no particular information. This class also serves as the base class for all other EventArgs classes. One example of a more specific EventArgs class is the
TreeNodeEventArgs
class, that is used by a number of events, and that contains information about which TreeNode that the event is related to.In some cases, EventArgs classes can be designed so that they allow event handlers to communicate data back to the source that raised the event, an example of that is the
CancelEventArgs
class.