分类: 嵌入式
2011-07-25 11:06:21
全屏:
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Menu = null; //若不设置为null则底端的菜单仍然会显示
this.ControlBox =false;
恢复正常:
this.WindowState = System.Windows.Forms.FormWindowState.Normal;
this.Menu = this.mainMenu1; //mainMenu1为VS自动生成的名称,可根据情况自行修改
this.ControlBox = true;