Is there a way to programmatically minimize a window

前端 未结 10 542
感动是毒
感动是毒 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:21

    this.WindowState = FormWindowState.Minimized;

    0 讨论(0)
  • 2021-02-03 17:25
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
    Me.Hide()
    
    End Sub
    
    0 讨论(0)
  • 2021-02-03 17:29
    <form>.WindowState = FormWindowState.Minimized;
    
    0 讨论(0)
  • 2021-02-03 17:30

    There's no point minimizing an already minimized form. So here we go:

    if (form_Name.WindowState != FormWindowState.Minimized) form_Name.WindowState = FormWindowState.Minimized;
    
    0 讨论(0)
  • 2021-02-03 17:31

    -- c#.net

    NORMALIZE this.WindowState = FormWindowState.Normal;

    this.WindowState = FormWindowState.Minimized;

    0 讨论(0)
  • 2021-02-03 17:32
    this.MdiParent.WindowState = FormWindowState.Minimized;
    
    0 讨论(0)
提交回复
热议问题