So far, I have a richTextBox made with Visual Studio (Named richTextBox1). I have a separate class that needs to change the text in the box. The textbox is in class Form1.
So far, what I have is :
In class Form1
and in the other class, I haveCode:public void txtchange(string changeinfo) { richTextBox1.Text += "\n" + changeinfo; }
Code:Form1.txtchange("blah blah");
The error it gives me on build is:
Form1.cs(214): An object reference is required for the nonstatic field, method, or property 'GUIbot.Form1.txtchange(string)'




Reply With Quote