title: Why am I encountering a weird error when opening a form?
body: <p>So I've got this form that has a map as a background and contains around 330 picturebox, At first it will open but after some attempts of opening it, it will show an error of: "InvalidOperationException was Unhandled: An error occurred creating the form. See Exception.InnerException for details.  The error is: Parameter is not valid."</p>
  
  <p>Can someone please tell me why is it occuring? Is it because of the number of picbox inside it? and i am not quite sure of how the error is triggered, but opening other forms may cause it though it is not consistent.</p>
  
  <p><img src="https://i.stack.imgur.com/bNFSG.jpg" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/XAdXr.jpg" alt="enter image description here"></p>
  
  <p>So this is what's inside line 4682 of frmVirtualSiteMap.Designer.vb:</p>
  
  <pre><code>    Me.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
  </code></pre>