// select the 8 characters, starting after the fifth character myTextBox.Select(5, 8);
0
0
3 Answer
2
通常の `+ TextBox `コントロールでテキストの一部の色またはフォントスタイルを変更する場合、それはサポートされていません。 テキストの一部を選択して目立たせることができますが、それは明らかに非常に一時的な解決策です( ` HideSelection `プロパティを ` false +`に設定して、 + TextBox + `にはフォーカスがありません):
// select the 8 characters, starting after the fifth character myTextBox.Select(5, 8);
0
0
私はついに自分で振る舞いを実装することになった。 http://www.codedblog.com/2007/09/17/owner-drawing-a-windowsforms-textbox/は本当に役に立ちました。