Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

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

"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
Posted

im not sure about the retrieving it back

 

ill do that on formload

 

 

Dim color as string

 

 

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

 

listview.backcolor = color

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...