Ok so I have make a Windows form in Visual C++, and I know how to use this code to get the text from the text box to a string
text = txtBox->Text;
That is in the Form1.h file, but I have to create some code in my .cpp file, so How do I get that information from the text box from my Form1.h file to be able to use it in my program.cpp file? When I click on the button I have created in my Form.
I did use something like this
Form1::txtBox but then what?
Thanks, I'm just trying to lean to use Windows Forms.