title: Event handling in Visual C++
body: <p>There are two pictureboxes with two different images.</p>
  
  <p>If I click on one picture box, the image in it should be cleared.</p>
  
  <p>To make the matters worse, both of the picture boxes have only one common event handler.
  How can I know which picturebox generated the event? I would appreciate source code in C++-CLI</p>
  
  <p>I need to know what to write inside the function:</p>
  
  <pre><code>private: System::Void sqaure_Click(System::Object^  sender, System::EventArgs^  e) {
  
  }
  </code></pre>
  
  <p>EDIT: The problem is that when I try to cast sender to picurebox, it gives an error saying that the types cannot be converted.</p>