屏幕 z
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;