Reputation: 2321
Hello I would like to know if there is a way to have my application run, without a title bar, essentially maximized so that only the body is visible on the screen. I'm sure I can work things like a show/hide option for a menuStrip
on mouseOver
or something like that, but for the title bar, I'm not sure. If there was a way to show/hide that on a mouseOver
can someone provide an example? This is for a WinForms application.
Upvotes: 3
Views: 1901
Reputation: 16623
If you want something easy you should work on a panel instead of work directly on the form and set the panel's dock to fill. So:
//...
panel.Dock = DockStyle.Fill;
//some stuff here
Controls.Add(panel);
Then when you want to see the full screen application, maximize the form and hide the titlebar like here:
WindowState = FormWindowState.Maximized;
FormBorderStyle = FormBorderStyle.None;
Upvotes: 0
Reputation: 283624
In WinForms, you can just set FormBorderStyle = FormBorderStyle.None;
Upvotes: 5