I would like to maintain a list of all of the strings entered into a ComboBox across all uses of an application on a given PC, for use as the AutoCompleteSource for that ComboBox, i.e., I enter in ‘Fred’ in the ComboBox, commit the data, close the application, reopen the application, reopen the ComboBox, type ‘F’, receive the suggestion ‘Fred’.
Assuming I already have in place code to create and maintain such a list in memory and add new elements to it as they are entered into the ComboBox, etc., what do you suggest as the best way to save/load this data in between sessions?
Possible complicating factors: This application will be deployed via OneClick deployment, and will search for updates online every time the application starts. I would prefer that if the application updates, the list still exists after the update has completed.
Thanks for your help.
Depending on your access level, storing them in a flat file seems the easiest choice.
That means you don’t send an empty file with your updates, so the data survives.
It appears that you could put the file in the Data Directory or use Isolated Storage.