G
Guest
Well, first of all, and most important, please don't post your questions 3
times. If you have additional information regarding the original post, reply
to the original post with the additional information. Don't start 3 separate
threads.
Second, What is the code for GetSetting with the 4 string parameters? What
does it return? Can you show the code?
From the error you mentioned in the first post, it sounds like you're trying
to create a font called "False" which I doubt is your intention. My guess is
that GetSetting with the 4 string parameters is returning the string
"False", which is what you're then passing to the constructor for the Font
object.
Pete
italics?????
textBox1.Font.FontFamily.GetName(0))), _
textBox1.Font.Bold)), _
Convert.ToString(textBox1.ForeColor.ToArgb())))
Convert.ToString(textBox1.BackColor.ToArgb())))
times. If you have additional information regarding the original post, reply
to the original post with the additional information. Don't start 3 separate
threads.
Second, What is the code for GetSetting with the 4 string parameters? What
does it return? Can you show the code?
From the error you mentioned in the first post, it sounds like you're trying
to create a font called "False" which I doubt is your intention. My guess is
that GetSetting with the 4 string parameters is returning the string
"False", which is what you're then passing to the constructor for the Font
object.
Pete
is in between the *** . The code works for everything else but the bold andTrussworksLeo said:Hello and thanks for the help in advance.
I am having issues getting this code to run. The code that is not working
italics?????
System.Drawing.Font((GetSetting("HBNotePad", "Startup", "FontName",Any suggestions would be helpful.
I get this error:Additional information: Cannot find font 'False'.
I know what it means but I dont know how to set the property Bold.
Private Sub GetSettings()
'Get last saved setting
Try
textBox1.Font = New
textBox1.Font.FontFamily.GetName(0))), _
"FontSize", Convert.ToString(textBox1.Font.Size))))Convert.ToSingle(GetSetting("HBNotePad", "Startup",
System.Drawing.Font((GetSetting("HBNotePad", "Startup", "FontBLD",************************************************
textBox1.Font = New
textBox1.Font.Bold)), _
"FontItl", textBox1.Font.Italic)))Convert.ToBoolean(GetSetting("HBNotePad", "Startup",
System.Drawing.Color.FromArgb(GetSetting("HBNotePad", "Startup", "ForeCol",***********************************************
textBox1.ForeColor =
Convert.ToString(textBox1.ForeColor.ToArgb())))
System.Drawing.Color.FromArgb(GetSetting("HBNotePad", "Startup", "BackCol",textBox1.BackColor =
Convert.ToString(textBox1.BackColor.ToArgb())))