Simple: How do i save contents of combo box to access later

KingJohnno

New member
Joined
Dec 2, 2010
Messages
4
Programming Experience
Beginner
Hi,
I have a combo box, that i have linked to a text box, to save continious data. How would i save the contents of that combo box?
Thanks
 
Your description is too vague for a definitive answer. If you mean that the Items collection of the ComboBox contains String values and you want to save those between sessions, the most likely option would be to use a StringCollection in My.Settings. Open the Settings page of the project properties and add a new steting of type StringCollection. You can then copy the items from it to the ComboBox at startup and back again at shutdown. The rest is done automatically.
 
Back
Top