Thanks earthandfire,
I have already prevent highlighting with the keyboard, but no with this technique. But with this:
Private Sub RTB_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles RTB.KeyDown
Dim i As Integer = 0
Dim BackSpc As Boolean = False
If e.KeyCode = Keys.Back Then
If i > 0 Then
BackSpc = True
i = i - 1
End If
ElseIf e.KeyCode = Keys.Delete Or e.KeyCode = Keys.Left Or e.KeyCode = Keys.Right Or e.KeyCode = Keys.Up _
Or e.KeyCode = Keys.Down Or e.KeyCode = Keys.PageUp Or e.KeyCode = Keys.PageDown Or e.KeyCode = Keys.Home _
Or e.KeyCode = Keys.End Or e.KeyCode = Keys.Escape Or e.KeyCode = Keys.NumLock Or e.KeyCode = Keys.Insert _
Or e.KeyCode = Keys.Enter Or e.Control Then
e.Handled = True
e.SuppressKeyPress = True
ElseIf (e.KeyCode = Keys.V AndAlso e.Control) Then
e.Handled = True
e.SuppressKeyPress = True
End If
End Sub
As a conclusion, the user can type, can paste data nowhere, prevents correcting a typing error for example a word, but he can correct an error character, the cursor is always in the textlength as I want which means that users can't re-position the cursor with keyboard and he can't see the highlighting selection either through keyboard either through mouse as I want too. I hope it is right.