I have a button click event and i want keyword this point to button1 while inside
button1_MouseClick event , but instead this points to my main form.
Is there any way around this?
1 2 3 4 5
private: System::Void button1_MouseClick(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e) {
//i expect these two to be the same, but they not.
MessageBox::Show(Convert::ToString(this));
MessageBox::Show(Convert::ToString(button1));
}<