title: DrawString from RichTextbox include formating (Bold,Italic,Align) in VB.NET
body: <p>I want to know how to DrawString with the text from RichTextbox,
  I done it, but the text formating like Bold, Italic, and Align is not drawn.</p>
  
  <pre><code>Private Sub PictureBox4_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox4.Paint
      Dim newImage As Image = Panel1.BackgroundImage
      Dim fontt As New Font("Tahoma", 10)
      Dim format As New StringFormat
      format.Alignment = StringAlignment.Far
      e.Graphics.DrawImage(newImage, 0, 0)
      e.Graphics.DrawString(RichTextBox1.Text, fontt, Brushes.Silver, 10, 10)
  End Sub
  </code></pre>
  
  <p>I use <code>PictureBox4_Paint</code> to draw the string when the form load.
  Please help</p>
  
  <p>Thanks :)</p>