//sender:表示的是“事件源”对象 privata void btn_TeacherClick(object sender,EventArgs e) { string txt = ((Button)sender).Text; MessageBox.Show(txt + "您好!"); }
//sender:表示的是“事件源”对象 privata void btn_TeacherClick(object sender,EventArgs e) { string txt = ((Button)sender).Text; MessageBox.Show(txt + "您好!"); }