Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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!
Posted
Comments
OriginalGriff 14-Jun-11 9:48am    
Without seeing the code to open and save the data we would be guessing - use the "Improve question" widget to post relevant code fragments (not the whole program)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900