public void showform(string formname){ switch(fromname)case "a":a frmwindow=new a();break;case "b":b frmwindow=new b();break;……}
form a=new form();