You can try using RGB color as follows:
on button click
Code:
colordialog.ShowDialog();
File.WriteAllText("dlg.txt", colordialog.Color.ToArgb().ToString());
this.BackColor = Color.FromArgb(colordialog.Color.ToArgb());
Code:
if (File.Exists("dlg.txt"))
{
int nARGB = 0;
int.TryParse(File.ReadAllText("dlg.txt"),
Leave a comment: