从注册表中读取
string tmp3 = (string)myKey02.GetValue("TxtFont", "宋体"); //richtext字体设置
int tmp4 = Convert.ToInt16((string)myKey02.GetValue("TxtSize", "9")); //字体大小
fontDialog1.Font = new System.Drawing.Font(tmp3, tmp4);但是字体设置为10.5这种带有小数的就不行了,请问第二行该怎么改,才能读取
string tmp3 = (string)myKey02.GetValue("TxtFont", "宋体"); //richtext字体设置
int tmp4 = Convert.ToInt16((string)myKey02.GetValue("TxtSize", "9")); //字体大小
fontDialog1.Font = new System.Drawing.Font(tmp3, tmp4);但是字体设置为10.5这种带有小数的就不行了,请问第二行该怎么改,才能读取
float tmp4 = float.Parse((string)myKey02.GetValue("TxtSize", "9")); //字体大小