事件及启动
1.使第二个文本框获得第一个文本框内容
private void textBox1_TextChanged(object sender, EventArgs e){textBox2.Text = textBox1.Text;}
{ Random rnd = new Random();this.label1.Left += 10;this.Text = DateTime.Now.ToString();this.label1.BackColor = Color.FromArgb(rnd.Next(255), rnd.Next(255), rnd.Next(255));}
3.timer对象
定时器控件的事件间隔属性:Interval