Using .Net Compact Framework, I have an ImageButton control (derived from the
Button control) this is wired to a click event. The click event's receives
the standard arguments (sender, e). How is it possible from within the click
event function to get the "name" property of the control? For example:
ImageButton ImageButton1 = new ImageButton();
ImageButton1.Click += new System.EventHandler(ImageButton1_Click);
.... code
private void ImageButton1_Click(object sender, System.EventArgs e)
{
string name = ((ImageButton)sender).name???
}
Thanks,