So, now I almost do not understand, I'm not even sure if this is possible in the end. I have Visual C # Form, which is launched by the program Program.cs (The standard way - VS did all the setup work, of course).
In addition to this, I have a class with a static method in a separate C # file, because I like to keep one class in one file.
My form code has an open function:
public void print(String text) { rtb_log.appendText("\n" + text); }
At a certain point in time, I call a static function from another class.
Is it possible to access this printing method from my other class? Since it refers to rtb_log (rich text field), it is available only in instanced case and, of course, is not static. But since static methods can only access static members, I have a bit of ideas here on how to add text to my form from another class.
Any help here?
source share