110,529
社区成员
发帖
与我相关
我的任务
分享
private void button1_Click(object sender, EventArgs e)
{
textBox1.Width = textBox1.Width / 2;
TextBox txtClone = new TextBox();
txtClone.Text = textBox1.Text;
txtClone.Width = textBox1.Width;
txtClone.Location = new Point(textBox1.Location.X + textBox1.Width + 10, textBox1.Location.Y);
Controls.Add(txtClone);
Refresh();
}