If I have this action function for a button:
private: System::Void button1_Click(System.Object sender, System.EventArgs e)
{}
I am wondering about who will assign for e & sender their values?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The code that raises the event must set the sender and event args. For example, if the button in question is a Winforms element, then the values would be set by the System.Windows.Forms code, and you should be able to find the details for it in the MSDN documentation.
Generally, by convention, the sender will be the object instance that has raised the event. The event args will contain any other information that is relevant to the event.