When you define your own event-handler delegate, what arguments are required? Provide an example of a delegate declaration.
What will be an ideal response?
Just like the event handlers automatically created in the IDE, each of your own event handler delegates requires two arguments: the object where the event was initiated (the sender), and an EventArgs argument. You can create an EventArgs object that contains event information, or you can use the EventArgs class static field named Empty, which represents an event that contains no event data. In other words, using the EventArgs.Empty field simply tells the client that an event has occurred, without specifying details. For example, you can declare a delegate event handler named ChangedEventHandler as follows:
public delegate void MyEventHandler (object sender, EventArgs e);
You might also like to view...
________ is a type of Internet connection with average speeds of 384 Kbps to 20 Mbps
A) FTTH B) Satellite Internet access C) Cable Internet access D) DSL
Access does not have a set order of operations
Indicate whether the statement is true or false