I’m trying to use a method within the code of one windows form and make it output some text to a textbox on another windows form. Both forms are part of the same application obviously. I have tried using
form2Textbox.Text("...");
within my method first form’s method, but permissions are a problem, even if I set them to public. Any suggestions?
My guess is (without seeing the exact error message your compiler gives) that the
form2Textboxis private in the second form. You either need to change that to public, or add an accessor method/property in the second form that exposesform2Textboxfor the first form to use. The first form also needs access to the instance (object) of the second form, so the accessor method/property can be called.