How should i save color settings?

Winston

Junior Contributor
Joined
Jan 25, 2003
Messages
266
Location
Sydney, Australia
Hi i wanna save the color setting and retrieve it


on a menu wen user clicks it, a color dialog appears they select it

i mean the color is then applied to the ListView back color


how should i go about saving it?


wen the user clicks ok?



and im planning to save it to the registry using the savesetting and getsetting feature


wat do i put for my values



this is wat ive got



SaveSetting(application.productname,"Options","ListColor", clrdlg.color)

i get an error coz color cannot be converted to string

any ideas guys?


thanks
 
Use clrdlg.Color.ToArgb().ToString() or something similar... (don't have the exact method names in front of me).

When reading them back in, use Color.FromArgb(Convert.ToInt32(registry value))

-Nerseus
 
im not sure about the retrieving it back

ill do that on formload


Dim color as string


color = getsetting(app.productnae,..,.., ????)

listview.backcolor = color
 
Back
Top