Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Considering I have a GUI with whatever-many textBoxes, how can i program it, to have a "Save"-button, which gives you the the chance to save the xml-file wherever you want on your computer, name it then and save the values, you wrote into the boxes?

and how could i put pictures with this post, to show you and give you a better idea of what i mean?

What I have tried:

too much, but nothing works that's why i'm asking :)
Posted
Updated 23-Aug-22 4:50am
Comments
Member 15627495 23-Aug-22 10:42am    
Hello,

you'll need several code lines to achieve.

for the Dialogbox to save a file : see at 'commondialog' 'filedialog' .

for the xml to write in a file : you require 'xmlWriter / xmlReader' resources with 'filestream'

in your VS, press F1 on selected keywords to reach the microsoft resources online.

1 solution

Getting the filename to save to can be done using the SaveFileDialog[^].
 
Share this answer
 

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