title: How do I enter the text in the specific textbox using button click
body: <p>I am working on a WinForms application.  There are four text boxes and one button in my form.  I am using <code>textBox1.SelectedText += "any string"</code> on a button click so it writes to the first <code>TextBox</code>.  If I add <code>textBox1.SelectedText += "any string."</code> then it writes both the textbox1 and textbox 2.</p>
  
  <p>When I click textbox1 and press button then the sting only writes in the first textbox, and I click the second textbox and press the button then it write into second text box .Is there is any way to do this?</p>
  
  <p>I'm using the following code.</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      textBox1.SelectedText += "abc";
      textBox2.SelectedText += "abc";          
  }
  </code></pre>
  
  <p>When I focus on the control, and when we press the button focus goes to the button.  So how can we the focus on the one of the text boxes of my form after pressing the button?</p>