title: C# Form inheritance and transfer of data
body: <p>I have 2 different <code>Forms</code>. My first form <code>Form1</code> is the main form that has a <code>TextBox</code> called <code>textbox1</code>. My other form is called <code>FontSettings</code> and is supposed to be used so <code>Form1</code> can inherit <code>FontSettings</code> data. I am trying to send a <code>string</code> and <code>2 integers</code> from <code>FontSettings</code> to <code>Form1</code>. It looks like this.</p>
  
  <ul>
  <li><p><strong>FontSettings</strong>: </p>
  
  <pre><code>Form1 form1 = new Form1();
  form1.insertFont(family, size, color);
  </code></pre></li>
  <li><p><strong>Form1</strong>:</p>
  
  <pre><code>public void insertFont(string a, int b, string c)
  {
      if (textBox1.SelectionLength &gt; 0)
      {
          xx = textBox1.SelectedText;
          textBox1.SelectedText = textBox1.SelectedText.Replace(xx, "" + a + "\" + b + c + "a");    
      }
      else
      {
          textBox1.Paste("" + a + "\" + b + c + "a");
      }
  }
  </code></pre></li>
  </ul>
  
  <p>The string and both integers used, are <strong>public</strong>.   </p>
  
  <p>Someone please describe to me what I am doing wrong?</p>