private void ts3_btn_full_Click(object sender, EventArgs e)
{
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; // 设置边框为 None
this.WindowState = FormWindowState.Maximized; // 最大化
this.splitContainer_MainFram.FixedPanel = System.Windows.Forms.FixedPanel.None;
this.splitContainer_MainFram.SplitterDistance = this.Size.Width;
this.TopMost = true; // 置顶
this.KeyPreview = true; // 允许窗体先收到键盘事件
this.KeyUp += new KeyEventHandler(Form_KeyUp); // 指定键盘按下事件
}
private void Form_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape) //“Esc” 按键退出全频
{
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Window