c# Changing Textbox.Text from different class
I have the function AddToText which is located in the Form1 Partial Class
I want to call this from a different class so I do:
public void AddToText(string text)
this.txtStatus.Text = this.txtStatus.Text + "\r\n";
I click a button called start and it calls the procedure on a different class and runs the code above. But nothing appears in my textbox. It works when I call it from the Partial Class Though.
Form1 frm = new Form1();