Good day. There is a code that when you click on the button adds a new textbox. After closing the program, these fields disappear accordingly. How to save data fields for later use?

  • Greetings Using a file on disk or DB. - Oleg GranRCM

1 answer 1

Data from manipulations can be stored in a database or use an .ini file to initialize your application (write changes to it, but this is not very good practice). In general, to store the state of the application using the database. Perhaps you should review the architecture of the application. Store the number of textboxes in a variable and update it in the database, when you start the application, get this variable from the database and output the textboxes in a cycle.