Winston Posted March 4, 2003 Posted March 4, 2003 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 Quote
*Experts* Nerseus Posted March 4, 2003 *Experts* Posted March 4, 2003 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 Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Winston Posted March 4, 2003 Author Posted March 4, 2003 im not sure about the retrieving it back ill do that on formload Dim color as string color = getsetting(app.productnae,..,.., ????) listview.backcolor = color Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.