title: How to use System.Drawing.Pen?
body: <p>I am in need of creating a custom form which look same as the Microsoft form by default. </p>
  
  <p>Currently I am working on the title bar buttons customization. </p>
  
  <p>For that I have used the graphics methods to draw the buttons.</p>
  
  <p>Please find the code that I have used to draw the maximize button.</p>
  
  <pre><code>g.DrawRectangle(new Pen(Color.Black), maxIconRect);
  </code></pre>
  
  <p>But I am not able to get the exact appearance of the Microsoft form.</p>
  
  <p>In the below image the 1st one is the title bar created by me. 2nd one is the title bar of Microsoft form. </p>
  
  <p><a href="https://i.stack.imgur.com/8aCBf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8aCBf.jpg" alt="Caption bar"></a></p>
  
  <p>You can see the difference in the maximize and minimize button. The thickness and clarity of the buttons are different for these two forms. </p>
  
  <p>I have tried to specify the width of the pen as given below.</p>
  
  <pre><code>Var pen = new Pen(Color.Black, 0.5F);
  </code></pre>
  
  <p>But there is no different in the appearance.</p>
  
  <p>Can you please provide your suggestion to achieve this?</p>
  
  <p>Thanks in advance.</p>