VB.NET質問スレ(Part36)
■ このスレッドは過去ログ倉庫に格納されています
0398デフォルトの名無しさん
2011/05/21(土) 22:42:19.61RichTextBox1.Select(0, 1)
RichTextBox1.SelectionColor = Color.LimeGree
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
Static a As Integer = 1
RichTextBox1.Text = "abcdefghijklmnopqrstuvwxyz"
RichTextBox1.Select(0, a)
RichTextBox1.SelectionColor = Color.LimeGreen
RichTextBox1.Select(a, 1)
RichTextBox1.SelectionColor = Color.DarkRed
a += 1
End Sub
こんな感じで文字が変化する度に見てる文字の色を変えて
一度見た文字はLimeGreenに変えるようにしたいんですが
2文字目で見てる文字以外全部がLimeGreenに変わってしまいます
どうすればうまく行きますか?
■ このスレッドは過去ログ倉庫に格納されています