public class Class1
{
public System.Windows.Forms.TextBox textBox1;
public Class1()
{
}
public void test()
{
textBox1.Text = "test";
}
}
执行:
Class1 s = new Class1();
s.textBox1 = this.textBox1;
s.test();和上面代码类似。
http://community.csdn.net/Expert/topic/3077/3077760.xml?temp=.6644403
{
public System.Windows.Forms.TextBox textBox1;
public Class1()
{
}
public void test()
{
textBox1.Text = "test";
}
}
执行:
Class1 s = new Class1();
s.textBox1 = this.textBox1;
s.test();和上面代码类似。
http://community.csdn.net/Expert/topic/3077/3077760.xml?temp=.6644403
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货