接楼上的 假设学号的textbox 为textBoxNumer
在radioButton2的CheckedChanged事件中写
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
if(radioButton2.Checked)
{
textBoxNumer.Text = ""; //或者string.Empty
}
}
假设学号的textbox 为textBoxStudent。
可以设置当触发按姓名查找的时候,textBoxStudent.text=string.Empty;