天天看點

螢幕  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;   

  Width   =   Screen.PrimaryScreen.WorkingArea.Width;   

  Height   =   Screen.PrimaryScreen.WorkingArea.Height;   

  } 

form.Left = Screen.PrimaryScreen.Bounds.Width;