Hello,
Do you know how I can change font size using StringBuilder?
and how can I add a text from a textBox to it? (instead of "test" in the example above)Code:StringBuilder str = new StringBuilder(); str.Append(@"&""Arial,Regular""test");
Hello,
Do you know how I can change font size using StringBuilder?
and how can I add a text from a textBox to it? (instead of "test" in the example above)Code:StringBuilder str = new StringBuilder(); str.Append(@"&""Arial,Regular""test");
You cannot change font size. The font size is a property of the display element. A stringBuilder only holds text, no formatting.
str.Append( textBox1.Text ); => will append the text of TextBox1 to your string.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.