1 Button btn = (Button)sender;//将触发此事件的对象转换为该Button对象 2 object form = System.Reflection.Assembly.Load(btn.Name).CreateInstance(btn.Name + "." + btn.Tag.ToString()); 3 if (form == null) 4 { 5 return; 6 } 7 Form child = new Form(); 8 child = (Form)form; 9 child.FormClosed += new FormClosedEventHandler(FunctionMainForm_FormClosed); 10 child.Owner = this; 11 child.Show(); 12 this.Hide();