我有一个用作按钮的标签。我想当我按下一个按钮时这个标签的点击事件采取行动。例如
private void Label1_Click(object sender, EventArgs e)
{
MessageBox.Show("I pressed this label and showed me this messagebox");
}
现在我想当我按下这个按钮时,要执行 label1 点击事件
private void button1_Click(object sender, EventArgs e)
{
// I want when I press this button something like this happens
Label1.PerformClick();
}