title: How to make a picture box appear after 5 seconds
body: <p>I am wondering what coding i will use to make a picture appear after 5 seconds ?</p>
  
  <p>For example </p>
  
  <pre><code>PictureBox1.visible = false
  </code></pre>
  
  <p>Then I want to wait 5 seconds before the picture becomes visible again</p>
  
  <pre><code>PictureBox1.visible = true
  </code></pre>
  
  <p>Could someone please put it into this code please </p>
  
  <p>public partial class Form1 : Form
      {</p>
  
  <pre><code>    int horiz, vert, step;
  
  
      public Form1()
      {
          InitializeComponent();
      }
  
      private void timer1_Tick_1(object sender, EventArgs e)
      {
  
  
          //image is moved at each interval of the timer
  
          goblin.Left = goblin.Left + (horiz * step);
          goblin.Top = goblin.Top + (vert * step);
  
  
          // if goblin has hit the RHS edge, if so change direction left
          if ((goblin.Left + goblin.Width) &gt;= (Form1.ActiveForm.Width - step))
              horiz = -1;
  
          // if goblin has hit the LHS edge, if so change direction right
          if (goblin.Left &lt;= step)
              horiz = 1;
  
          // if goblin has hit the bottom edge, if so change direction upwards
          if ((goblin.Top + goblin.Height) &gt;= (Form1.ActiveForm.Height - step))
              vert = -1;
  
          // if goblin has hit the top edge, if so change direction downwards
          if (goblin.Top &lt; step)
              vert = 1;
      }
  
      private void Form1_Load_1(object sender, EventArgs e)
      {
          //Soon as the forms loads activate the goblin to start moving 
          //set the intial direction
          horiz = 1;  //start going right
          vert = 1;   //start going down
          step = 5;
          timer1.Enabled = true;
  
      }
  
  }
  </code></pre>
  
  <p>}</p>