I don't think this is currently possible. The only way I can think of to
do this is to do the following:
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam,
private static const int EM_SETSEL = 0x00B1;
int start = 4;
int end = 2;
// Select starting from character at index for, backwards to character 2.
SendMessage(richTextBox1.Handle, EM_SETSEL, start, end);
I will report this issue to the development team.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights