title: Brute force characters into a textbox in c#
body: <p>I want to make a program that "test passwords" to see how long they would take to break with a basic brute force attack. So what I did was make 2 text boxes. 
  (<code>textbox1</code> and <code>textbox2</code>) and wrote the program so if the text boxes had the input, a "correct password" label would appear, but i want to write the program so that <code>textbox2</code> will run a brute force algorithm in it, and when it comes across the correct password, it will stop. I REALLY need help, and if you could just post my attached code with the correct additives in it that would be great. The program so far is extremely simple, but I am very new to this, so.</p>
  
  <pre><code>private void textBox2_TextChanged(object sender, EventArgs e)
  {
  
  }
  
  private void button1_Click(object sender, EventArgs e)
  {
  
  
      if (textBox2.Text == textBox1.Text)
      {
          label1.Text = "Password Correct";
      }
      else
      {
          label1.Text = "Password Wrong";
  
      }
  
  }
  
  
  private void label1_Click(object sender, EventArgs e)
  {
  
  }
  </code></pre>