ilhami caliskan

ilhami caliskan

  • 2.1k
  • 76
  • 84.1k

custom event

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 "" 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)