For help! I wrote an XML file with several nodes which saved textbox values. In my project , there are some forms, I want my program to do the following:
When I click a button on my mainForm, it should open my XML file, and save it as a file named (TextBox1.text).xml
If Form2 is loaded after I click a button, open the saved XML file in step 1, then the textbox values are written in the XML file and saved.
If the other button on Form3 is clicked, open the saved XML file, Form3's textbox values are written in the XML file.
Now my problem is, it just saved my last loaded form. What is wrong in my steps? Please give me some suggestions or details! Thanks a lot!