What is "sender"?

Dec 12, 2013 at 7:50am
Hello. I'm working on a project and I would need some quick help.
I have a button and from how I understood it, the object "sender" can be used in various ways.
My question is: what is "System::Object^ sender" and how can it be used? Any examples?

Thank you in advance!
Dec 12, 2013 at 11:07am
it's the thing that actually sends the event to be handled elsewhere.

http://msdn.microsoft.com/en-us/library/aa645739(v=vs.71).aspx

I take it you know this is C++/CLI stuff?
Dec 12, 2013 at 1:26pm
Yes I do. I am working in C++ and creating a game where you have to click a pictureBox and I want to use the sender to match the click with something else.
Dec 12, 2013 at 4:32pm
sorry, i should have said:
"are you using C++ OR C++/CLI"?
Dec 12, 2013 at 4:54pm
Oh sorry. Yeah, C++/CLI
Topic archived. No new replies allowed.