ilhami caliskan

ilhami caliskan

  • NA
  • 76
  • 89.3k

custom event button.click

Mar 3 2013 4:52 AM

would you please tell me what is wrong with this code?

if (button1.Click = true)
{
    this.label1.Text = "custom event";
}

Error is:
the event "...control.click" can only apear on the left hand side of += or -=

I have here a custom event which several buttons can cause.
But in the code I have to know which button caused that custom control.

thank you all


Answers (1)