473,406 Members | 2,707 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,406 software developers and data experts.

32K limit in TextBox ?!

I'm writing an application with a TextBox control on its main form.
I'm running the application under WinXP Pro, so (as I understand it)
there should be no practical limit to the number of characters in a
text box.

However, when I paste in a large amount of text, the text box
truncates it at exactly 32K characters. This is a problem, because I
need to know exactly how many of each character were pasted; besides,
I wasn't expecting the text box to "fill up" under normal
circumstances.

Why would my text box truncate text at 32K, when I'm absolutely sure I
was able to paste much more than 32K of text in the same application
before?

P.
Nov 16 '05 #1
4 4826
TextBox has a limit TextBox.MaxLength

"Paul E Collins" <fi******************@CL4.org> schrieb im Newsbeitrag
news:ch**********@titan.btinternet.com...
I'm writing an application with a TextBox control on its main form.
I'm running the application under WinXP Pro, so (as I understand it)
there should be no practical limit to the number of characters in a
text box.

However, when I paste in a large amount of text, the text box
truncates it at exactly 32K characters. This is a problem, because I
need to know exactly how many of each character were pasted; besides,
I wasn't expecting the text box to "fill up" under normal
circumstances.

Why would my text box truncate text at 32K, when I'm absolutely sure I
was able to paste much more than 32K of text in the same application
before?

P.

Nov 16 '05 #2
"Zürcher See" <aq****@cannabismail.com> wrote:
TextBox has a limit TextBox.MaxLength


Thanks, but I've set MaxLength to zero ("no limit") and I still get
the 32K problem.

P.
Nov 16 '05 #3
Hi,

I do remember this was discussed a couple of months ago. Take a look at the
archives.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Paul E Collins" <fi******************@CL4.org> wrote in message
news:ch**********@hercules.btinternet.com...
"Zürcher See" <aq****@cannabismail.com> wrote:
TextBox has a limit TextBox.MaxLength


Thanks, but I've set MaxLength to zero ("no limit") and I still get
the 32K problem.

P.

Nov 16 '05 #4
"Paul E Collins" <fi******************@CL4.org> wrote:
[pasted text is truncated at 32K chars in TextBox]


Okay - I found the "problem". My paste code was setting SelectedText.
It seems that SelectedText truncates any string at 32K characters,
even though there's nothing about this in the documentation.

I'm now setting Text instead, and it works correctly.

P.
Nov 16 '05 #5

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

Similar topics

3
by: Quack Boy | last post by:
Hi all, I've worked out that the limit of a textbox is 64Kb. What can I do if the I want to work with text which is, say four or five times as much? Can I extend the limit (maxlength??) of the...
2
by: Parintas Themis STE Kardias | last post by:
I have a textbox, and i wand to put a limit (for example only 8 characters) and if i entry characters not longer of 8 then add spaces for the rest of textbox characters
1
by: cw | last post by:
Hi all, Is anyone have an idea that limit message length input by user into textbox. I'hv tried the maxlength property by setting it to 150, but it seems like not working.., regards
6
by: Avi G | last post by:
Hi, what is the code to limit a textbox that will accept only text and not number private void button1_Click(object sender, EventArgs e) { if (textBox1.Text = "numbers") { // do something }
27
by: Killer42 | last post by:
Hi all. Does a textbox on an Access form have an equivalent of the VB6 .MaxLength property? I need to limit the length of an input string. It's not bound to anything, just used in code, but I'd...
2
by: Terry | last post by:
Hi, i want to limit input in this textbox up to 2O characters, but i can input a unlimited amount of characters. How to limit that? <asp:TextBox ID="txtStreet" runat="server" Width="200px"...
1
by: | last post by:
Hello everyone, I am using a textbox for dumping information generated by the file system watch object. I am having this problem that always at some stage new new information stops being entered...
2
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I've a multiLine Textbox, and i want to limit each line to a maximum number of charecters. How can i do it? Thanks, Gidi.
0
by: tshad | last post by:
I seem to have hit some sort of limit of a textbox (multiline). It was working fine for a while, but now I am getting a strange error having nothing to do with the problem. I have a Function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.