| Curtis (5) | |
|
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 | |
|
|
|
| naraku9333 (923) | |
Try casting. ((Label^)sender)->Text = "test";
| |
|
|
|
| Curtis (5) | |
|
That works. Thanks. Curtis | |
|
|
|