title: C#: Rectangles drawn with DrawRectangle on a non-primary monitor doesn't render top and left borders
body: <p>I have a full screen form and in the handler for the Paint event I am drawing a 2px border around the entire form. I create one of these forms for each screen attached to the computer. For some reason, the top and left borders are not drawing on any non-primary monitors. The form's background covers the entire screen but I can't see to draw (using GDI) on area about 3px down from the top and 3px in from the left of the screen.</p>
  
  <p>My Paint event handler code is below.</p>
  
  <pre><code>private void OnPaint(object sender, PaintEventArgs e)
      {
          using (Graphics g = this.CreateGraphics())
          {
              int border = 2;
              int startPos = 0;
              // offset used to correctly paint all the way to the right and bottom edges
              int offset = 1;
              Rectangle rect = new Rectangle(startPos, startPos, this.Width - border + offset, this.Height - border + offset);
              Pen pen = new Pen(Color.Red, border);
  
              // draw a border 
              g.DrawRectangle(pen, rect);
          }
      }
  </code></pre>
  
  <p>Has anyone seen this before?</p>