C# windows form如何隐藏窗口?

you can use this line of code. It wont hide it, but it will be minimized:

this.WindowState = FormWindowState.Minimized;

in addition, if you don't want it showing on the task bar either, you can add this line:

this.ShowInTaskbar = false;

But why do you create the form if you don't want it to be visible in the first place?

上一篇:MongoDB 搭建文件存储的方案


下一篇:『cURL』curl: (6) Could not resolve host无法解析主机地址