Is there a way to programmatically minimize a wind

2020-05-21 07:33发布

What I'm doing is I have a full-screen form, with no title bar, and consequently lacks the minimize/maximize/close buttons found in the upper-right hand corner. I'm wanting to replace that functionality with a keyboard short-cut and a context menu item, but I can't seem to find an event to trigger to minimize the form.

10条回答
地球回转人心会变
2楼-- · 2020-05-21 07:59

-- c#.net

NORMALIZE this.WindowState = FormWindowState.Normal;

this.WindowState = FormWindowState.Minimized;

查看更多
闹够了就滚
3楼-- · 2020-05-21 08:01
<form>.WindowState = FormWindowState.Minimized;
查看更多
小情绪 Triste *
4楼-- · 2020-05-21 08:08
Form myForm;
myForm.WindowState = FormWindowState.Minimized;
查看更多
家丑人穷心不美
5楼-- · 2020-05-21 08:12

in c#.net

this.WindowState = FormWindowState.Minimized
查看更多
登录 后发表回答