I have a user control with a label set as Dock Fill. I have created the Click event of the User control as well as of the label:
private void Cell_Click(object sender, EventArgs e)
{
if (this.ClickCount == 0)
{
this.ClickCount = 1;
this.SetSeat_Male();
}
else if (this.ClickCount == 1)
{
this.ClickCount = 2;
this.SetSeat_Female();
}
else if (this.ClickCount == 2)
{
this.ClickCount = 0;
this.SetSeat_Empty();
}
}
private void lblSeatNo_Click(object sender, EventArgs e)
{
Cell_Click(sender, e);
}
I am using this user control on another form, but the click event of this user control on form is not calling the click event of the cell in this user control. How can i call this click event on my form?