Make form full screen

  • Thread starter Thread starter Vayse
  • Start date Start date
V

Vayse

Hi
Is there a way to open a form at maximum size? That is, as if the user had
clicked the maximise button.
Thanks
Vayse
 
fMain = New frmMain
fMain.WindowState = FormWindowState.Maximized
fMain.Show()


? Not sure if thats what you were asking for.

M.
 
Thats it, thanks.

Miro said:
fMain = New frmMain
fMain.WindowState = FormWindowState.Maximized
fMain.Show()


? Not sure if thats what you were asking for.

M.
 
You can also set the properties on the form itself to always show maximized.
See the "WindowState" property.

I have had an instance of this that it did not create the form "Maximized"
during runtime. That is why i do it the 'coding' way instead.

Miro
 
Vayse said:
Is there a way to open a form at maximum size? That is, as if the user had
clicked the maximise button.

Set the form's 'WindowState' property to 'Maximized' at design time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top