问题又来了.# DotNet - 窗口里的风景
j*o
1 楼
Windows Application with one form. There is a textBox1 and a button
on it.
...
private TextBox getTextBox()
{
TextBox txtBox = new TextBox();
txtBox.Text = DateTime.Now.ToString();
return txtBox;
}
private void button1_Click(object sender, System.EventArgs e)
{
textBox1 = getTextBox();
}
...
Why textBox1.Te
on it.
...
private TextBox getTextBox()
{
TextBox txtBox = new TextBox();
txtBox.Text = DateTime.Now.ToString();
return txtBox;
}
private void button1_Click(object sender, System.EventArgs e)
{
textBox1 = getTextBox();
}
...
Why textBox1.Te