foreach (Control ctrlSingle in this.Controls) { if (ctrlSingle is RadioButton) { if (ctrlSingle.Text == strDeviceType) { (ctrlSingle as RadioButton).Checked = true; } } } 相关文章: