Updating GUI form Separate Class
<p>so I've been searching for the past few hours, reading on everything about how to update the GUI of the form from another class.  I tried, backgroundworker, and Invoke, but nothing seems to work, or rather I'm not doing it right. (I'm still pretty new to c#) So..why doesn't this method work at all?</p>

<p><em>Form 1:</em></p>

<pre><code> private void button2_Click_1(object sender, EventArgs e)
    {
        prog.stuff();
    }
    public void Updateprogressbar(int input)
    {
        progressBar1.Value = input;

    }
</code></pre>

<p><em>Class Prog</em></p>

<pre><code> public static void stuff()
    {
        Form1 f = new Form1();
        int up = 100;
        f.Updateprogressbar(up);
    }
</code></pre>

<p>I know this is probably a very easy question, but I still can't figure it out.  The progress-bar just won't update.  And I do have it all enabled to public in the properties.  Thanks anyway. </p>
