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