Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我按下按钮时的部分代码我希望关闭当前窗口并打开新窗口但当前窗口保持打开状态
AdminWindow window = new AdminWindow(); window.ShowDialog(); this.Close();
如果我只写this.Close();,当前窗口将被关闭。如何关闭当前窗口并打开我的adminWindow或为什么此代码不起作用?
this.Close();
adminWindow
谢谢。
你可以this.Hide();改用。
this.Hide();