TriggerHappy
...
- Reaction score
- 341
How could I make a C# text bold, note that i'm using a rich text box.
Thats what I got, but this is what the text looks like when shown.
{\rtf1\ansi\bfunction0.}
But theres a weird symbol between the \b and the "f" in function.
PHP:
string Bold(string input)
{
return @"{\rtf1\ansi\b" + input + "\b0.}";
}
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
int i = 0;
while (i < boldcount)
{
jass.Text = jass.Text.Replace(bold[i], Bold(bold[i]));
jass.SelectionStart = jass.TextLength;
i = i + 1;
}
}
Thats what I got, but this is what the text looks like when shown.
{\rtf1\ansi\bfunction0.}
But theres a weird symbol between the \b and the "f" in function.