gpt4 book ai didi

c# 如何 FormWindowState.Normal

转载 作者:太空宇宙 更新时间:2023-11-03 20:42:44 25 4
gpt4 key购买 nike

我有这个代码:

    private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
about About = new about();
About.ShowDialog();
}

它将父窗口状态最小化为最小化并显示启动窗体。

我的问题是启动画面关闭后如何返回到 parentwindowstate.normal?

最佳答案

private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
about About = new about();
About.ShowDialog();
this.WindowState = FormWindowState.Normal;
}

关于c# 如何 FormWindowState.Normal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1936668/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com