good night, im having an issue with trying to figure out this. i need to work with two frames, i've already managed to open a secondFrame from the mainFrame. However, i cant figure out how to get the data changed from the secondFrame to update the data on the mainFrame because i cant create a mainFram type object inside the secondFrame code for god knows what reason. I hope that someone can help to solve this issue. Thanks in advance.
This is the code from the button im using, "apoyo" would be the secondFrame object created inside mainFrame code. The mainFrame should be shown again when the secondFrame is closed. i already opened the code for the FormClosing event btw.
thank you so much. other question, if i want to program a button in MyForm1.h to return to the mainFrame, how can i do something like button1_Click if i'm not allowed to put inside the MyForm1 code someting like:
1 2 3 4
mainFrame::Show()
// or
mainFrame ^main = gcnew mainFrame();
main->Show();