Saving Color Info In Registry
Hi!
Can anyone tell me how I can save a color to the registry & read it back?
----------------------------------------------------------------------------------
Dim m_Normal_BG As Color
Dim aa As String
In Button Click Event:
ColorDialog1.ShowDialog()
m_Normal_BG = ColorDialog1.Color
TextBox1.BackColor = m_Normal_BG
SaveSetting("Test App", "Colors", "Normal_BG", m_Normal_BG.ToArgb)
Retrieving info (code behind second button):
aa = GetSetting("Test App", "Colors", "Normal_BG")
m_Normal_BG = Color.FromArgb(aa)
TextBox1.BackColor = m_Normal_BG
---------------------------------------------------------------------------------
The above works fine, but I want it to save in the registry as Color.Blue & retrieve the value as Color.Blue, which the above doesn't do.
Any suggestions?