richTextBox
テキスト選択の可能性を同時に有効にして、自動スクロールインを無効にするにはどうすればよいですか?
2 に答える
Setting the focus to another control is the simple way.
In general, you don't want the user to see these updates at all. It tends to cause a lot of flicker while you are updating the content. The boilerplate solution that most controls provide for that is their BeginUpdate and EndUpdate methods. RichTextBox is missing them however. You can add them though with a wee bit of pinvoke. You'll find the required code in this answer.
選択テキストでは ReadOnly を true にしますが、変更文字列では無効にしてください。元。: RichTextBox1.ReadOnly = True RichTextBox1.ScrollBars = RichTextBoxScrollBars.None;