首先你必须在下拉框的SelectedIndexChanged事件里边写代码 获得你所选的dropDownList的值 this.droIden.SelectedValue 得到根据值进行if判断等于1的话,就把第一个文本框显示出来 this.TextBox1.Visible = true; 等于2就 this.TextBox1.Visible = true; this.TextBox1.Visible = true;