Open maximized form on full screen

Asked

Viewed 7,401 times

2

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

IMAGE OF THE FORM inserir a descrição da imagem aqui

CODE

namespace Projeto_Funcionario
{
    public partial class Principal : Form
    {
         public Principal()
         {
             InitializeComponent();
         }
     }
 }
  • I think it would be good if you show some of your code. This is the main form of your program, or a secondary window?

  • @Molx is the main form of my program, I will post a print and the code so far.

1 answer

2


You can set the property WindowState for FormWindowState.Maximized.

  • by code:

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

    inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.