c# visual studio!! how do I get my form to occupy the entire screen? it’s only half the screen!

Asked

Viewed 43 times

0

inserir a descrição da imagem aqui

This is the image of my form if you fix it it is not occupying the whole screen. I would like to know how to do to occupy the whole screen.

  • Is wpf? If it is passes the XAML of this form.

1 answer

2

If it is WPF, in XAML just use the following:

HorizontalAlignment="Stretch" VerticalAlignment="Stretch"

If it is Winforms, just change the option Dock for Fill:

tabControl1.Dock = DockStyle.Fill;

Or change the property directly in the panel:

inserir a descrição da imagem aqui

  • 2

    I was writing the answer when yours appeared! This will solve the problem

Browser other questions tagged

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