这么个小问题都解决不了了.
Button myButton = new Button();
myButton.ID = this.dtStateSel.Items[i].Value;
myButton.Height = 20;
//myButton.BackColor = "red"
myButton.Text = this.dtStateSel.Items[i].Text;
myButton.Click += new EventHandler(btnOk);
panButList.Controls.Add(myButton);
我想给button复个颜色,可是这么写是错误的,请问怎么写.