It isn't the amount of text, so much as the amount of screen
disruption that occurs. When one sets the Text like you suggest,
what effectively happens is a Clear followed by an AppendText
of the string whch puts you pack up at the top of the text and
you have to go thru scrolling up to the end of the text, restoring the
caret to the end and so forth.
There must be an easier way.
By the way...is the way I originally posted *supposed* to work?
Regards, Oz
On Tue, 28 Oct 2003 09:04:10 -0500, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard.caspershouse.com> wrote:
ozbear,
This might be overkill, but you could always set the text like this:
re.Text = re.Text.Substring(0, re.Text.Length - 1);
If you have a lot of text though, I can see how that would be very
inefficient.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"ozbear" <oz****@no.bigpond.spam.com> wrote in message
news:3f9e20d0.186390765@news-server... The title says it all. Since a Richedit control doesn't understand a
backspace character ('\b', or 0x08) when I receive one I need to
programmatically delete the last character from the Richedit control.
This is a WinForms application, not a webform.
I have tried...
re.SelectionLength = 1;
re.SelectionStart = re.Textlength-1;
re.SelectionText = ""; // empty string
but that doesn't seem to delete the last character. It stays there.
Any advice from anyone?
Oz