I am writing an application just for fun and practice, I want the user to able to change the color of the form and the text, so I have command buttons that pull up the custom pallete. I put in the command click event the following code.

SaveSetting appname:="csClient", Section:="Prferences", Key:="BackColor", Setting:=cmdChangeColor.BackColor

and in the form load event.

dim result as variant
result = GetSetting(appname:="csClient", Section:="Preferences", Key:="BackColor", Default:="")
If result > " " Then
frmClient.BackColor = result
End If
I can change the color of the form and the text but when I close and reopen it doesn't remember my changes.
I think that I am putting the savesetting in the wrong procedure, I also tried it in the lost focus, but that didn't seem to work either. this has worked for me with font and font size before. Any suggestions?
Thanks in advance, Cady