單項(xiàng)選擇題

下面那個(gè)代碼段正確的增加了一個(gè)TextBox控件到一個(gè)名為form1的Web窗體上?()

A.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true;
B.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true; c.Controls.Add(form1);
C.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true; c.Add(form1);
D.TextBox c = new TextBox(); c.ID = "txtUserName"; c.Visible = true; form1.Controls.Add(c);

微信掃碼免費(fèi)搜題