Open form maximized in full screen

2

I have a main form which contains all the system options and I would like to know how to open this maximized on the whole screen, if possible, adapting the different resolutions.

FORM IMAGE

CODE

namespace Projeto_Funcionario
{
    public partial class Principal : Form
    {
         public Principal()
         {
             InitializeComponent();
         }
     }
 }
    
asked by anonymous 30.03.2015 / 02:21

1 answer

2

You can set the property WindowState to FormWindowState.Maximized .

  • by code:

    namespace Projeto_Funcionario
    {
        public partial class Principal : Form
        {
             public Principal()
             {
                 InitializeComponent();
                 this.WindowState = FormWindowState.Maximized;
             }
        }
    }
    
  • by the designer:

30.03.2015 / 03:08