title: How to resize a windows form from another form
body: <p>I have two windows forms. The first one (marquee) is the default one, that runs when the solution is run, and the other one is called this way: </p>
  
  <pre><code>config configForm = new config();
  configForm.Show();
  </code></pre>
  
  <p>I have a textbox component on configForm called txtWidthand another one called txtHeight. I also I got a button Apply. In marquee form, I got a function with this:</p>
  
  <pre><code>public void ApplySettings()
  {
      int width = Convert.ToInt32(configForm.txtWidth.Text);
      int height = Convert.ToInt32(configForm.txtHeight.Text);
  
      if (width &gt; 0 &amp;&amp; height &gt; 0) { this.Size = new Size(width, height); }
  
  }
  </code></pre>
  
  <p>I don't know how to call that method from configForm. If I create a new marquee form and use marqueeNew.ApplySettings() the width results 0 and an errors appears.</p>
  
  <p>How do I can change the properties from the configForm to the marquee Form? I can do it in the opposite way, but that doesn't help me!</p>