积极答复者
vs2012中richTextBox控件是否有BUG?

问题
答案
-
private void richTextBox1_TextChanged(object sender, EventArgs e) { richTextBox1.Font = new Font("宋体", 20.0f); }
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已建议为答案 Mike FengModerator 2013年3月19日 9:25
- 已标记为答案 Mike FengModerator 2013年3月24日 13:29
-
或者在界面上设置之后直接这样做(因为RichTextBox默认情况下会根据输入的中西文字符自动调整字体,我强制设置UI统一字体)。
private void Form1_Load(object sender, EventArgs e) { richTextBox1.LanguageOption = RichTextBoxLanguageOptions.UIFonts; }
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已建议为答案 Mike FengModerator 2013年3月19日 9:25
- 已标记为答案 Mike FengModerator 2013年3月24日 13:29
全部回复
-
private void richTextBox1_TextChanged(object sender, EventArgs e) { richTextBox1.Font = new Font("宋体", 20.0f); }
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已建议为答案 Mike FengModerator 2013年3月19日 9:25
- 已标记为答案 Mike FengModerator 2013年3月24日 13:29
-
或者在界面上设置之后直接这样做(因为RichTextBox默认情况下会根据输入的中西文字符自动调整字体,我强制设置UI统一字体)。
private void Form1_Load(object sender, EventArgs e) { richTextBox1.LanguageOption = RichTextBoxLanguageOptions.UIFonts; }
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已建议为答案 Mike FengModerator 2013年3月19日 9:25
- 已标记为答案 Mike FengModerator 2013年3月24日 13:29