How to access System::Object^ sender

Given:

private: System::Void MyMethod(System::Object^ sender, System::EventArgs^ e) {

Where MyMethod is called from one of many label click events,

How do I set the text property of the sender?

I'm using C++ Visual studio .net.

Curtis
Try casting. ((Label^)sender)->Text = "test";
That works. Thanks.
Curtis
Topic archived. No new replies allowed.