title: How to hide a picture box on another Form
body: <p>To elaborate on the title: </p>
  
  <p>I currently have 2 forms. </p>
  
  <ul>
  <li>Form1 = Main form</li>
  <li>Form2 = linked to Form1 using <code>ShowDialog()</code></li>
  </ul>
  
  <p>Form1 has 3 picture boxes and a button</p>
  
  <p>Form2 is a simple Fillable form and what I want it to do is when I click the OK button on Form2, I have form2 set to close But I need to hide the picture boxes and buttons on Form1, i.e. have it show blank.  </p>
  
  <p>I'm not too sure what I am doing wrong.</p>
  
  <p>I added the picture boxes as public declaration in Form2.vba </p>
  
  <pre><code>Public Class CreateNewProject
  
  'declare Form1 objects
  Public Img_Documentation As PictureBox
  Public Img_OnlineResources As PictureBox
  Public Img_Tutorials As PictureBox
  </code></pre>
  
  <p>And I added the <code>.hide()</code> to each picture box in my button sub</p>
  
  <pre><code>Private Sub ButtonOK_Click(sender As Object, e As EventArgs) Handles ButtonOK.Click
  
      If TextNewProjectName.Text = "" And TextSaveFileLocation.Text = "" Then
          MessageBox.Show("Please enter a " &amp; LabelProjectFileName.Text &amp; vbCrLf &amp; vbCrLf &amp; "Please choose a " &amp; LabelSaveFileLocation.Text, "Warning")
      Else
          'Close current form
          Me.Close()
          'Close objects on Form1
          Img_Documentation.Hide()
          Img_OnlineResources.Hide()
          Img_Tutorials.Hide()
      End If
  End Sub
  </code></pre>
  
  <p>Alternatively, I tried creating a new blank form (form3) opening that form after closing form2 which worked great but I cannot get Form1 to close using <code>Form1.close()</code>.  </p>
  
  <pre><code> Me.Close()
   Form3.Show()
   Form1.close()
  </code></pre>