title: Draw text on a Panel
body: <p>OK, I fix everything, now is exactly what I want.
  I have a <code>textBox1</code>, <code>panel1</code>, and <code>drawTexta</code> (a button). </p>
  
  <p>When I click the button and choose a point in the panel, I want to draw the string from the <code>textBox1</code>. </p>
  
  <pre><code>private void panel1_Paint(object sender, PaintEventArgs e)
  {
      using (SolidBrush br = new SolidBrush(Color.Red))
      {
          StringFormat sf = new StringFormat();
          sf.FormatFlags = StringFormatFlags.DirectionRightToLeft;
          e.Graphics.DrawString(textBox1.Text, this.Font, br, point1, sf);
      }
  }
  
  private void panel1_MouseDown(object sender, MouseEventArgs e)
  {
      point1 = new Point(e.X, e.Y);
  } 
  
  bool flag = false;
  Point point1 = new Point();
  
  private void drawTexta_Click(object sender, EventArgs e)
  { 
      flag = true;
      panel1.Refresh();
  }
  </code></pre>