如果您只想将宽度设置为 100%:
this.Width = Screen.PrimaryScreen.Bounds.Width;
Run Code Online (Sandbox Code Playgroud)
如果你想同时设置宽度和高度:
this.WindowState = FormWindowState.Maximized;
Run Code Online (Sandbox Code Playgroud)
您可以FormWindowState在加载时使用最大化表单。
this.WindowState = FormWindowState.Maximized;
Run Code Online (Sandbox Code Playgroud)