Ok well, I ran my program and I selected a simple font for it, here is what was put into the registry. [Font: Name=Wingdings 2, Size=8.25, Units=3, GdiCharSet=2, GdiVerticalFont=False] I used
Code:
private Font preffont;
 
public void WriteFormattingPrefsToRegistry()
{
reg.Write("font", GetFont()); 
}
 
public void ReadFormattingPrefsFromRegistry()
{
reg.BaseRegistryKey = Registry.CurrentUser;
//This does not work with or without converting to a string.
SetFont(Convert.ToString(reg.Read("font"))); 
}
 


public Font GetFont()
{
return preffont;
}
 
publicvoid SetFont(Font v)
{
preffont = v;
}
to write it to the registry, using a class with all the reg.write code. The Font object its self writes to the registry as a string automatically.
Quote:
Basically if its written as string then its read as string.
Thats what I was thinking as well, but I guess not.