I don't know whether it has an ultimate limit, but
the default limit is 64K characters, with an image
counting as 1 character.
(Some MS docs say it's 65K characters and some say
it's 65535 bytes. I'm guessing that they don't count
the RichText formatting info.)
You can set it in the RTB properties: MaxLength.
Maxlength = 0 is for no limit, which is backwards
of how the RTB actually works so it's hard to know
what VB is doing when you set MaxLength = 0.
If you have a RichEdit with no limit set the default
is 64K. If you call EM_EXLIMITTEXT or EM_SETLIMITTEXT
with a parameter of 0 the limit will be set to 64K. So VB
must be calling EM_EXLIMITTEXT using a specific high
number. Maybe you could catch it using Spy++.
--
--
CajunCoiler (
http://www.cajuncoiler.tk)
<po**********@totallyspamless.cox.net> wrote in message
news:mFzOb.2362$ZJ1.524@lakeread01...
I've seen no reference to this in the MSDN library, so I ask here... what
is the known upper limit for the RichTextbox control? And when this
limit is exceeded, what error is generated?