views:

335

answers:

5

I'd like my application to be run as "fullscreen" much like a powerpoint presentation is ran. The title bar is gone and the menu bar is also gone.

I dont think it should be too complicated but I just can't find how to do it

+1  A: 

This should help: http://stackoverflow.com/questions/600735/fullscreen-application-wm6-c

kenny
I think he meant in the full framework!
Stevo3000
+4  A: 

If you want to do it right, including hiding the task bar, here's an article which shows a working approach: http://www.codeproject.com/KB/cs/FullScreenDotNetApp.aspx

marcc
+2  A: 

Here is a great example showing how to do this.

It requires a couple of P/Invoke calls.

Reed Copsey
A: 

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
Justin Ethier
This seems like the easy approach, but it doesn't cover the task bar.
marcc
Agreed - And there is a nice solution in the article you provided.
Justin Ethier
+1  A: 

Make sure you take account of multi-monitor scenario. This code will make your form full-screen on the active monitor (where mouse cursor is).

this.FormBorderStyle = FormBorderStyle.None;
this.Bounds = Screen.FromPoint(MousePosition).Bounds;
Pavel Chuchuva