Starting full screen .NET Form

I want my application to run as a “full screen”, just like a PowerPoint presentation. The title bar disappeared and the menu bar also disappeared.

I don’t think it should be too complicated, but I just can’t find how to do it.

+3
source share
4 answers

If you want to do it right, including hiding the taskbar, here is an article that shows a working approach: http://www.codeproject.com/KB/cs/FullScreenDotNetApp.aspx

+6
source

Here is a great example showing how to do this.

This requires several P / Invoke calls.

+2
source

, . ( ).

this.FormBorderStyle = FormBorderStyle.None;
this.Bounds = Screen.FromPoint(MousePosition).Bounds;
+2
source

Try this (VB.NET syntax):

Me.MaximizeBox = False
Me.MinimizeBox = False
Me.TopMost = False
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
0
source

Source: https://habr.com/ru/post/1707786/


All Articles