private void FullScreen() //全屏
{
SizeMode = 2;
FormBorderStyle = FormBorderStyle.None;
Left = Top = 0;
Width = Screen.PrimaryScreen.Bounds.Width;
Height = Screen.PrimaryScreen.Bounds.Height;
BringToFront();
}
private void FullWorkSpace() //充满工作区
{
SizeMode = 1;
FormBorderStyle = FormBorderStyle.Sizable;
Left = Top = 0;
Width = Screen.PrimaryScreen.WorkingArea.Width;
Height = Screen.PrimaryScreen.WorkingArea.Height;
BringToFront();
}
form.Left = Screen.PrimaryScreen.Bounds.Width;
时间: 2024-11-08 23:03:05