OK, this is driving me crazy! As far as I can tell it should work. It
compiles fine.
I am saving the fore and back colour of a RTB to the registry like
this:
Srx.SetValue("ForeColour", Console.ForeColor.ToArgb.ToString)
Srx.SetValue("BackColour", Console.BackColor.ToArgb.ToString)
Then, I try to read the colours back in at runtime and change the
colour of the RTB like this:
Dim ForeCol As New System.Drawing.Color
Dim BackCol As New System.Drawing.Color
ForeCol.FromName(Lrx.GetValue("ForeColour"))
Console.ForeColor = ForeCol
BackCol.FromName(Lrx.GetValue("BackColour"))
Console.BackColor = BackCol
The colours get saved to the registry OK but when the form loads it is
not changing the colours! As far as I can tell the values are read
back from the registry OK but just ignored.
Any ideas?? Thanks.