Slow RichTextBox property

From: James dean (James)
Date: 03/17/05


Date: Thu, 17 Mar 2005 01:33:47 -0800

I was using the RichTextBox property called SelectionStart to move
through the text one character at a time to check to see if one
character is different from the next. The problem is this property is
very slow and takes alot of processing time. Is there a more efficient
method i could use. I used also the select method but it is also slow so
i need something different.....any ideas

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: Event to return value
    ... >> private void textBox1_KeyPress(object sender, ... > You'll need to use the SelectionStart and SelectionLength properties to ... > ensure that your character is placed in the correct location (and whatever ... > public static void uCaseReturn(object sender, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Caret Position in Textbox Control
    ... The position of the caret is always at SelectionStart. ... the caret in the character array in the TextBox. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Event to return value
    ... The event handler code above isn't sufficient because you don't know that ... when the user pressed the key that the cursor is at the end of the textbox. ... You'll need to use the SelectionStart and SelectionLength properties to ... ensure that your character is placed in the correct location (and whatever ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Event to return value
    ... Wouldn't it be easier to do this on the TextChanged event? ... > You'll need to use the SelectionStart and SelectionLength properties to ... > ensure that your character is placed in the correct location (and whatever ...
    (microsoft.public.dotnet.languages.csharp)