i don't know how to register the font style. all i have here is the fontname and fontsize. in savesetting...
and in getsetting...VB Code:
rkfr.SetValue("fontname", RichTextBox1.Font.Name.ToString) rkfr.SetValue("fontsize", Double.Parse(RichTextBox1.Font.Size)) rkfr.SetValue("fontstyle", RichTextBox1.Font.Style)
it throws an error about overloaded resolution failed. how do i register the fontstyle? sorry for bothers and thanx...VB Code:
RichTextBox1.Font = New Font(rkfr.GetValue("font").ToString, _ Double.Parse(rkfr.GetValue("fontsize")), rkfr.GetValue("fontstyle"))




Reply With Quote