1.this.width & this.Height
2.dc.width & dc.height

解决方案 »

  1.   

    Rectangle r = Screen.PrimaryScreen.Bounds;
    int i = r.Width;
    int j = r.Height;
    int x = r.X;
    int y = r.Y;
      

  2.   

    1.this.width & this.Height
    2.如果你只有一个Screen用:
      Screen.PrimaryScreen.Bounds.Width;
      Screen.PrimaryScreen.Bounds.Height;
      如果你有多个Screen用int x ;
    int y ;int index;
    int upperBound;    Screen [] screens = Screen.AllScreens;
       upperBound = screens.GetUpperBound(0);   for(index = 0; index <= upperBound; index++)
       {
          // For each screen
          x=screens[index].Bounds.Width;
         
          y=screens[index].Bounds.Height;
       }