473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Richtextbox upper limit

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?
Jul 17 '05 #1
3 5318
I think it's limited to the avaliable system memory.

--
Regards
Dillon Mantle
Jul 17 '05 #2

"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?


I have a MS Language Reference (hard copy) from years ago and remember
reading a table in there that shows field limitation. I now it broke the 64K
textbox limitation. I will find the hardcopy but I believe it was 4096Mb
(which might be its internal pointer limit). I let you know if I find the
hard copy.
Jul 17 '05 #3
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?

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Leandro | last post by:
There is an upper memory limit in Python? I have 2GB RAM and 2 processors Xeon 2.4 - (Windows XP), but I just can use 1.2G of memory, after this python crashes. Does someone know if python has...
4
by: John Broderick | last post by:
I've got a problem with the RichTextBox control in .Net where the garbage collector doesn't reclaim its memory after I've finished with it. My program adds a series of rtb's to the control array...
1
by: DW | last post by:
Hi, all: I'd heard that the upper row limit in SQL of 6080 bytes may have been increased with SP3. Can anyone confirm/deny this? Is this still a 'carved-in-stone' upper cap? Thanks,
2
by: KenH | last post by:
I am getting an unhandled system exception while writing to a RichTextBox. The process may run for a few hours or days before the error is generated The message is "Cannot access a disposed object...
11
by: Mad Joe | last post by:
I'm using a richTextBox for editing a source code (with Syntax Highlighting) of my own programming language... How come that myRichTextBox doesn't respond to Undo/Redo functions by using default...
6
by: mike w. | last post by:
I'm trying to get a char when a user right cliks in a RichTextBox, but I keep geting "An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll ...
3
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
One more for today.... As I add more and more lines to my RichTextBox the array that holds its strings gets bigger and bigger and the vertical scroll bar gets smaller and smaller until the...
2
by: D. Susman | last post by:
Hi, I know that this issue is indeed strictly operating system dependent but I am just curious: I have a five dimensional array, whose size sums to 68 MB (almost). This array is contained by...
4
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a multiline RichTextBox that I use for data logging. I'm concerned about how the AppendText method reacts when over time the maximum number of characters have been added. Do the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.