My question is if I open a new form like this:
Admin inst = new Admin();
inst.Show();
Form1.WindowState = FormWindowState.Minimized; ///Doesn't work
How do I minimize the form I was on before opening the other one, without having to open another instance of Form1 ? If I use this.WindowState... it minimizes the whole program. IE: Form1
首先隐藏您的表单,然后显示“管理”表单。
this.WindowState = FormWindowState.Minimized
//Show your form here
@IceDawg ur question is hard to understand...but ru trying to do this
Form2 form = new Form2();
form.Show();
this.WindowState = FormWindowState.Minimized;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.