
private void Form1_Load(object sender, EventArgs e) { int y = 24; for (int i = 0; i < 5; i++) { Button btn = new Button(); btn.Click += new EventHandler(btn_Click); y = y + 25; btn.Location = new System.Drawing.Point(121, y); this.Controls.Add(btn); } } void btn_Click(object sender, EventArgs e) { ((Button)sender).BackColor = Color.Red; }还得多动手啊

[ 本帖最后由 wangnannan 于 2011-12-5 13:25 编辑 ]

出来混,谁不都要拼命的嘛。 。拼不赢?那就看谁倒霉了。 。有机会也要看谁下手快,快的就能赢,慢。 。狗屎你都抢不到。 。还说什么拼命?