I have an application with main form. the main form has menu and some toolstrip and one user control set the dock to Fill. how can i provide full screen view so that user control set to full screen and all menu and toolstrip hide from main form.
Share
Not that I’ve ever done it – by my approach would be to:
In your full screen ‘mode’ do this:
switch off the form border
set controlbox to false (gets rid of the titlebar and top-left window menu)
make the menu/toolstrip invisible.
This is done with the ‘Visible’ property of those controls.
Now, you should be able to set the window state of the form to Maximized.
EDIT – Code Sample:
Paste this into the code file of a new forms app