title: How to make a textbox invisible when radio button checked
body: <p>I am working on C# application. I have 10 radio buttons in a group panel, so now if I only checked the radioButton10 then textBox1 will be visible, if I checked someone of the other radio Buttons (radioButton1 .... radioButton9) then textBox1 should be invisible.
  I wrote the following code but the textBox1 is still visible. If the code is right where can I wrote it(form load, some function ... etc) if it's NOT, then Please Help.</p>
  
  <pre><code>    public TeamInfoForm()
      {
          InitializeComponent();
          showTeam();
          if (radioButton10 .Checked)
              textBox1 .Visible = true;
          else
              textBox1 .Visible = false;
  
      }
  </code></pre>