Это работает для меня.Это событие Load для формы (вы можете сгенерировать его, дважды щелкнув форму в конструкторе).В этом случае мы проверяем текущие размеры экрана, содержащего форму.Затем мы устанавливаем размер формы для соответствия.Мы также перемещаем позицию формы в 0, 0, чтобы она не отсекалась от экрана.
//the name of this function will be different for you.
//generate this function by double clicking the form in designer.
//the code inside the function is what you're interested in.
private void MainForm_Load(object sender, EventArgs e)
{
Rectangle screenSize = Screen.GetBounds(this); //find out the current screen size
this.Top = 0; //move the form to top
this.Left = 0; //move the form to left
this.Width = screenSize.Width; //set form width to screen width
this.Height = screenSize.Height; //set form height to screen height
}
РЕДАКТИРОВАТЬ: Кроме того, почему бы просто не развернуть?
this.WindowState = FormWindowState.Maximized;