Link to home
Start Free TrialLog in
Avatar of karen021897
karen021897

asked on

Store Combobox.Items Into Windows Registry


I want to store all items in combobox into registry.

read from the registry when the app loads and write to registry all the items into registry when the app close

thanx
Avatar of kifah
kifah

It's much beter to use a file to save the items.
by using ComboBox.Items.SaveToFile(FileName);

Sure you can use registry for that, but is not recomended (in my openion).

Tell me if you still need to use the registry, so I can give a simple code, which will make your job.
I'm afraid I would have to disagree with kifah. It _is_ recommened to use the Registry instead of local files, that is what the Registry is all about. It's here to replace the use of the old .ini files. The fact that it is getting too big and disturbs the work-flow of Windows is another matter.

The .SaveToxxxx methods are Streams. You can find many freeware components adding stream capabilities including the Registry, thus allowing SaveToRegistry for components. Check out one of the many Delphi components pages.
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of karen021897

ASKER

Inthe, thanks

kifah : do you have any code?

Thanks