Edanmo Richedit control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: MS-News (unication_at_hotmail.com)
Date: 03/16/04


Date: Tue, 16 Mar 2004 15:55:12 -0700

Hi all,

I am using the Edanmo Richedit control to display data as it arrives from a
server using this code:

With RichEdit1.Selection
      .Range.Font.ForeColor = colorIn
      .TypeText textIn
   End With

I have the MaxLength property set to 0.

My problem occurs when there are 65537 characters displayed. At that point,
the control refuses to accept any more text.

It was my understanding that when I set the property to 0, the number of
allowable characters would only be limited by the computer's resources
(memory, etc).

As a test, I set the MaxLength property to 5000, and when I reach 5001
characters, the control refuses to display any more characters.

Am I completely off base here in my understanding of the MaxLength property?

Also, assuming that the control is limited to 65537 characters (an
acceptable number to me), what would be the best way to delete the oldest
text to make room for new?

Thanks in advance!



Relevant Pages

  • Re: GetWindowText with unicode
    ... They display fine in the control - I have russian characters, ...
    (microsoft.public.vc.mfc)
  • Re: LED style text display control
    ... I have a multiline LED display which has 4 lines of 20 characters, ... I need a C# control which allows me to display LED style text. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: FIFO Text Control
    ... I don't think creating user control will make it work ... flickering scroll bar when I re-set the text. ... Display text as it is received by the application ... Set the max number of characters that can be displayed ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Edanmo Richedit control
    ... > I am using the Edanmo Richedit control to display data as it arrives from ... > My problem occurs when there are 65537 characters displayed. ... > As a test, I set the MaxLength property to 5000, and when I reach 5001 ... the control refuses to display any more characters. ...
    (microsoft.public.vb.general.discussion)
  • Pivot Charting x-axis control
    ... Could you help me control the number of characters that Pivot Charts ... display in the x-axis labels? ... I am trying to display around 23 ...
    (microsoft.public.excel.charting)