Activate another Form
<p>From Form1 I've been opening Form2. If I then click on a button or whatever in Form1, I want Form2 to be activated. Something like</p>

<pre><code>Form2.Activate();
</code></pre>

<p>But that just gives me errors.</p>

<p>This is my code right now:</p>

<pre><code>    private void button1_Click(object sender, EventArgs e) // first I click here
    {
        Form2 f2 = new Form2();
        f2.Show();
    }

    private void button2_Click(object sender, EventArgs e) // then here, to activate it
    {
        Form2 f2 = new Form2();
        f2.Activate();
    }
</code></pre>
