I was just wondering for future information if you add a message to a combo box such as this:

ComboBox1.Items.Add(ComboBox1.Text)

is it possible to save it in the combo box so that if the form is closed then re-loaded that message will still be stored? Thanks

Recommended Answers

All 2 Replies

Yes, but you need to determine a storage location. If it should apply to all users of an application across the network -- then you should store it in a database. If it applies to an application across the entire machine you should save it in the Machine level configuration section, or HKLM in the registry. Likewise for the logged in user it is either the user section or HKCU in the registry

thanks for you're help, I will read up on that. Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.