Is there a way to programmatically minimize a window

前端 未结 10 543
感动是毒
感动是毒 2021-02-03 17:09

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

相关标签:
10条回答
  • 2021-02-03 17:35

    in c#.net

    this.WindowState = FormWindowState.Minimized
    
    0 讨论(0)
  • 2021-02-03 17:40
    private void Form1_KeyPress(object sender, KeyPressEventArgs e)
    {
         if(e.KeyChar == 'm')
             this.WindowState = FormWindowState.Minimized;
    }
    
    0 讨论(0)
  • 2021-02-03 17:40
    Form myForm;
    myForm.WindowState = FormWindowState.Minimized;
    
    0 讨论(0)
  • 2021-02-03 17:44
    FormName.WindowState = FormWindowState.Minimized;
    
    0 讨论(0)
提交回复
热议问题