title: How to draw a string on a picturebox with C# immediately after I show it?
body: <p>I have a main windows form called <code>Menu.cs</code>, in this class I have two buttons called 'lines' and 'polygons', each button open its respective window. Polygons got a picturebox and I have to draw the x and y axis</p>
  
  <pre><code>private void botonPoligonos_Click(object sender, EventArgs e) 
  {
      WindowPolygons objPolygons = new WindowPolygons();
      objPolygons.Show();
  }
  </code></pre>
  
  <p>I actually do it with a button called 'drawAxes':</p>
  
  <pre><code>public void drawAxes_Click() 
  {
      drawAxes();
  }
  
  public void drawAxes()
  {
      Graphics papel = pictureBox1.CreateGraphics();
      Pen lapiz = new Pen(Color.Black);
      //Dibujo de ejes X y Y
      papel.DrawLine(lapiz, 20, 425, 742, 425);
      papel.DrawLine(lapiz, 20, 425, 20, 20);
      papel.DrawString("X", myFont, Brushes.Black, new Point(745, 418));
      papel.DrawString("Y", myFont, Brushes.Black, new Point(14, 5));
  }
  </code></pre>
  
  <p>But I don't want to do it with a button, I'd like to draw the axes since the picturebox is shown, I already tried to put the method <code>drawAxes()</code> in the constructor, in the loader of <code>WindowPolygons.cs</code> and under <code>objPolygons.show()</code> but nothing happens, do anyone know how to do it?</p>
  
  <p>This is my first time making a question, thanks:) </p>