读书人

c#控件调用有关问题

发布时间: 2012-03-17 19:06:27 作者: rapoo

c#控件调用问题,求高手指教
怎样用button2调用button2的事件,求高手解答;比如:
private void button1_Click(object sender, EventArgs e)
{
this.textBox1.Text="学校";
}
private void button2_Click(object sender, EventArgs e)
{
我现在在这里也想要实现button1_Click的功能,但是想通过调用button1来实现。我该怎么写
}

[解决办法]
this.button1_Click(sender,e)

读书人网 >C#

热点推荐