Tag: mainwindow

Windows窗体:在运行时更改应用程序主窗口

通常我会做Application.Run(myMainForm)。 但我想做这样的事情: MyForm1 f = new MyForm1(); f.Close+=OnOpenOverviewWin(); Application.Run(f); void OnOpenOverviewWin() { MyOverViewForm f = new MyOverViewForm (); Application.Run(f); // i want to do this Application.NewMainWindow = f; // or something like that }