33,322
社区成员




public Form1()
{
InitializeComponent();
this.textBox1.Click+=new EventHandler(textBox1_Click);
}
private void textBox1_Click(object sender, EventArgs e)
{
this.textBox1.Text = "";
}
输入 this.textBox1.Click+= 然后按TAB键自动生成 this.textBox1.Click+=new EventHandler(textBox1_Click); private void textBox1_Click(object sender, EventArgs e)
{
this.textBox1.Text = "";
}