Modify textBox from outside the form "class"?

I'm using c++/cli and windows forms.
My form has text boxes, and I can't seem to modify them from anywhere outside the event handlers of the form's controls.

I want a simple function on the primary cpp file of the project to simply set:

textBox2->Text="The text I want".

Any solution?
You could make textBox2 public or create a public function(setter) or property inside the form class.
Topic archived. No new replies allowed.