c# 窗体实例化

2024-12-30 12:31:45
推荐回答(2个)
回答1:

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

回答2:

form a=new form();