private void Form1_Load(object sender, EventArgs e)
{
this.MaximizeBox = false;
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.WindowState = FormWindowState.Maximized;
}调整下顺序即可解决:
private void Form1_Load(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
this.MaximizeBox = false;
this.FormBorderStyle = FormBorderStyle.FixedSingle;
}
评论(0)
暂无评论。