How do I modify a form's text box from a separate class?
<p>I am trying to create a form where I can update text in a text box without requiring interaction from the user. Right now I am trying to create a method in my form's class that updates the TextBox.Text field. Outside of the class I am not able to access the function. </p>

<p>Right now I am trying </p>

<pre><code>static void Main()
{
    Form status = new Window();
    Application.Run(status);
    status.UpdateTextBox("NewText");
}
</code></pre>

<p>My form class looks like (from the designer)</p>

<pre><code>public partial class Window : Form
{
    public Window()
    {
        InitializeComponent(); 
    }

    public void UpdateTextBox(string text)
    {
        textBox1.Text = text;
    }  
}
</code></pre>

<p>I have also tried making the Textbox a public property like this.</p>

<pre><code>public string DisplayedText
{
    get
    {
        return textbox1.Text;
    }
    set
    {
        textbox1.Text = value;
    }
}
</code></pre>

<p>I am trying to edit the field during runtime. Is this possible?</p>
