Search:
Forum
Beginners
Modify textBox from outside the form "cl
Modify textBox from outside the form "class"?
Apr 25, 2021 at 3:09am UTC
Hossifer
(2)
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?
Apr 25, 2021 at 6:24pm UTC
thmm
(703)
You could make textBox2 public or create a public function(setter) or property inside the form class.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs