C# sender problems
<p>When i press a picturebox in my project I contact the method card_Pressed.
 through this code </p>

<pre><code> this.picturebox.Click += new System.EventHandler(this.card_Pressed)
</code></pre>

<p>I have a few pictureboxes as all are linked to this method, now i wanna check which has been pressed by contacting the sender in the method and comparing it to the name of the picturebox.</p>

<pre><code> if( sender == picturebox1)
{
//something
 }
</code></pre>

<p>I got this working when im using a button but not when im using a picturebox, why?</p>

<p>Thanks!</p>
