为控件添加方法的时候其中的this到底是代表甚么呢?
例如:
private void button1_click(object sender,EventArgs e)
{
string name;
name = this.textBox.text;
}为什么this能调用textBox对象呢?
谢谢帮小菜鸟解答.
例如:
private void button1_click(object sender,EventArgs e)
{
string name;
name = this.textBox.text;
}为什么this能调用textBox对象呢?
谢谢帮小菜鸟解答.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货