title: VB.NET Draw focus rectangle
body: <p>I need to a draw common dotted focus rectangle. </p>
  
  <p>I would like to know if there is an equivalent to </p>
  
  <pre><code>Public Declare Function DrawFocusRect Lib "user32" (ByVal hdc As Long, lpRect As RECT) As Long
  </code></pre>
  
  <p>in the GDI+ classes / System.Drawing of VB.NET that is managed and that will accomplish the same.</p>
  
  <p>Thank you!</p>
  
  <p>I need to edit my post: For some reason, ControlPaint.DrawFocusRectangle does not persist on a bitmap. </p>
  
  <p>I would therefore like to ask if there is a different method that persists on a bitmap as well.</p>