full screen mode, but don't cover the taskbar

前端 未结 10 1323
旧巷少年郎
旧巷少年郎 2020-12-05 19:38

I have a WinForms application, which is set to full screen mode when I login.

My problem is it\'s covering the Windows taskbar also. I don\'t want my application to

10条回答
  •  时光取名叫无心
    2020-12-05 20:06

    The way I do it is via this code:

    this.MaximizedBounds = Screen.FromHandle(this.Handle).WorkingArea;
    this.WindowState = FormWindowState.Maximized;
    

提交回复
热议问题