I've an application which is using a multiline textbox to log the status of a fairly long procedure. "Updates" are made to the
status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length of the textbox. According to the documentation, setting
MaxLength = 0 will increase this to basically the limit of available memory. So, in the form designer, I set the MaxLength property
equal to 0.
However, this has not made any difference, as it still stops adding text at 32K characters. Any ideas why it would still be
limiting me? Or suggestions on an alternative method for providing the status?
--
Adam Clauss ca*****@tamu.ed u 14 7609
Well, the Text property is a String. A String's Length property is an
Integer - meaning the Length can not be longer then roughly 32K (the maximum
value for an integer). So it would seem that this is a limitation of the
String class, though I am not sure whether or not this is explicitly
mentioned.
"Adam Clauss" <ca*****@tamu.e du> wrote in message
news:eM******** ******@TK2MSFTN GP11.phx.gbl... I've an application which is using a multiline textbox to log the status
of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length
of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available
memory. So, in the form designer, I set the MaxLength property equal to 0.
However, this has not made any difference, as it still stops adding text
at 32K characters. Any ideas why it would still be limiting me? Or suggestions on an alternative method for providing the
status? -- Adam Clauss ca*****@tamu.ed u
Hmm... no, it does not mention this at all.
From MSDN doc on MaxLength:
Windows NT 4.0, Windows 2000, Windows Server 2003 family Platform Note: For single line text box controls, if the MaxLength
property is set to 0, the maximum number of characters the user can enter is 2147483646 or an amount based on available memory,
whichever is smaller. For multiline text box controls, the maximum number of characters the user can enter is 4294967295 or an
amount based on available memory, whichever is smaller.
Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition Platform Note: For single line text box controls, if
the MaxLength property is set to 0, the maximum number of characters the user can enter is 32,766 or an amount based on available
memory, whichever is smaller. For multiline text box controls, the maximum number of characters the user can enter is 65,535 or an
amount based on available memory, whichever is smaller.
According to this, since I'm running Windows XP (although not mentioned, I assume it follows with Windows 2000/2003) with a
multiline text box I should get up to 4 billion characters (or memory, but I have 512MB of RAM, I'm not running out at 32K...).
--
Adam Clauss ca*****@tamu.ed u
"Marina" <so*****@nospam .com> wrote in message news:OS******** ******@tk2msftn gp13.phx.gbl... Well, the Text property is a String. A String's Length property is an Integer - meaning the Length can not be longer then roughly 32K (the maximum value for an integer). So it would seem that this is a limitation of the String class, though I am not sure whether or not this is explicitly mentioned.
"Adam Clauss" <ca*****@tamu.e du> wrote in message news:eM******** ******@TK2MSFTN GP11.phx.gbl... I've an application which is using a multiline textbox to log the status of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available memory. So, in the form designer, I set the MaxLength property equal to 0.
However, this has not made any difference, as it still stops adding text at 32K characters. Any ideas why it would still be limiting me? Or suggestions on an alternative method for providing the status? -- Adam Clauss ca*****@tamu.ed u
And wait... so an int is same as System.Int32 - a signed 32 bit integer. Its max is nowhere near 32K. Its:
-2,147,483,648 to 2,147,483,647 (as quoted per MSDN - and done by hand calculation 2^31).
So it can't be the string length limiting me.
--
Adam Clauss ca*****@tamu.ed u
"Marina" <so*****@nospam .com> wrote in message news:OS******** ******@tk2msftn gp13.phx.gbl... Well, the Text property is a String. A String's Length property is an Integer - meaning the Length can not be longer then roughly 32K (the maximum value for an integer). So it would seem that this is a limitation of the String class, though I am not sure whether or not this is explicitly mentioned.
"Adam Clauss" <ca*****@tamu.e du> wrote in message news:eM******** ******@TK2MSFTN GP11.phx.gbl... I've an application which is using a multiline textbox to log the status of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available memory. So, in the form designer, I set the MaxLength property equal to 0.
However, this has not made any difference, as it still stops adding text at 32K characters. Any ideas why it would still be limiting me? Or suggestions on an alternative method for providing the status? -- Adam Clauss ca*****@tamu.ed u
Hi Adam, can you post a small program demonstrating your problem? I was able to get a textbox to go past the 32k barrier easily.
The question I have is why are you using a text box for so much text? Does the user need to cut and paste that much text into the app?
Richard
"Adam Clauss" wrote: I've an application which is using a multiline textbox to log the status of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available memory. So, in the form designer, I set the MaxLength property equal to 0.
However, this has not made any difference, as it still stops adding text at 32K characters. Any ideas why it would still be limiting me? Or suggestions on an alternative method for providing the status?
-- Adam Clauss ca*****@tamu.ed u
Hi Adam,
What OS are you using?
Cheers
Doug Forster
"Adam Clauss" <ca*****@tamu.e du> wrote in message
news:eM******** ******@TK2MSFTN GP11.phx.gbl... I've an application which is using a multiline textbox to log the status
of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length
of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available
memory. So, in the form designer, I set the MaxLength property equal to 0.
However, this has not made any difference, as it still stops adding text
at 32K characters. Any ideas why it would still be limiting me? Or suggestions on an alternative method for providing the
status? -- Adam Clauss ca*****@tamu.ed u
When I get back to the office tomorrow I'll strip the one I have down and
try to get a small demo app.
The information is not going INTO the app, its a readonly textbox that is
used to display the status of the program (and history of the status, just
adds a new line). I chose it since the main functionality of the program
was recently brought over from a console app. The textbox AppendText method
seemed to be a natural replacement for Console.WriteLi ne - and it works
great, except for this.
Adam Clauss ca*****@tamu.ed u
"Richard A. Lowe" <Richard A. Lo**@discussion s.microsoft.com> wrote in
message news:78******** *************** ***********@mic rosoft.com... Hi Adam, can you post a small program demonstrating your problem? I was
able to get a textbox to go past the 32k barrier easily. The question I have is why are you using a text box for so much text?
Does the user need to cut and paste that much text into the app? Richard
"Adam Clauss" wrote:
I've an application which is using a multiline textbox to log the status
of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length
of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available
memory. So, in the form designer, I set the MaxLength property equal to 0.
However, this has not made any difference, as it still stops adding text
at 32K characters. Any ideas why it would still be limiting me? Or suggestions on an alternative method for providing the
status? -- Adam Clauss ca*****@tamu.ed u
Windows XP
Adam Clauss ca*****@tamu.ed u
"Doug Forster" <doug at _ZAPTHIS_
toniq_ZAPTHIS_D OT_ZAPTHIS_co_Z APTHIS_DOTnz> wrote in message
news:uA******** *****@TK2MSFTNG P10.phx.gbl... Hi Adam,
What OS are you using?
Cheers
Doug Forster
"Adam Clauss" <ca*****@tamu.e du> wrote in message news:eM******** ******@TK2MSFTN GP11.phx.gbl... I've an application which is using a multiline textbox to log the status of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available memory. So, in the form designer, I set the MaxLength property equal to 0.
However, this has not made any difference, as it still stops adding text at 32K characters. Any ideas why it would still be limiting me? Or suggestions on an alternative method for providing the status? -- Adam Clauss ca*****@tamu.ed u
Hi Adam
I did convert a console application few weeks ago and i found that using the
ListBox control was much more efficient than using a textBox...
if you really want to use a textbox maybe a string builder object would give
you better performance.
But as I said the listBox control is really cool...
Anyway hope this helps!
Keep us posted about what you find for a solution!
Thanks
Marc-andre Poupier, MCSE,MCT mapoupier@NOSPA M_guardianmicro .com
"Adam Clauss" <ca*****@tamu.e du> wrote in message
news:eM******** ******@TK2MSFTN GP11.phx.gbl... I've an application which is using a multiline textbox to log the status
of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length
of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available
memory. So, in the form designer, I set the MaxLength property equal to 0.
However, this has not made any difference, as it still stops adding text
at 32K characters. Any ideas why it would still be limiting me? Or suggestions on an alternative method for providing the
status? -- Adam Clauss ca*****@tamu.ed u
Textboxes are limited to 32K on windows 98, But under windows 200 and
higher, maxlength should go past 2GB.
--
cody
Freeware Tools, Games and Humour http://www.deutronium.de.vu || http://www.deutronium.tk
"Adam Clauss" <ca*****@tamu.e du> schrieb im Newsbeitrag
news:eM******** ******@TK2MSFTN GP11.phx.gbl... I've an application which is using a multiline textbox to log the status
of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendT ext.
As my task is fairly lengthy, I go well past the default max text length
of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available
memory. So, in the form designer, I set the MaxLength property equal to 0.
However, this has not made any difference, as it still stops adding text
at 32K characters. Any ideas why it would still be limiting me? Or suggestions on an alternative method for providing the
status? -- Adam Clauss ca*****@tamu.ed u
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jerry |
last post by:
In limiting textbox input to 500 characters I would like to include a
dynamic count of characters input while the user is typing into a textbox.
This would obviously be a client side control, possibly a custom validator
with a function written in javascript.
Has anyone done this? Does someone have an example?
Regards
|
by: mg |
last post by:
The simple e-mail webform in the shown in the code below sends the characters in its textbox as an email message correctly when text of any length is pasted into the textbox but not when large numbers of characters are typed into the textbox. The limit to the number of characters that you can type into the textbox and still have them ALL sent as email is somewhere around 1000. After the number of characters typed into the textbox exceeds...
|
by: Itar |
last post by:
I'm having a problem supressing characters in a text box. I only want alpha
numeric characters (no special chars). I can handle the TextBox_KeyPress
event to supress the invalid characters when the user types them in, however
that doesn't handle the user pasting invalid characters. I thought to use
the MouseDown event but I couldn't figure out how to tell if the user is
trying to paste or is copying the text. To paste the text the user...
|
by: João Araújo |
last post by:
Hello all,
I'm a VB6 programmer, and I'm starting to change basic functions to .NET.
I've seen an example on how to allow only digits on a textbox control, using
the Edit Control Styles on a specific class DigitTextBox (code example
below).
There is a constant that behaves the way I want except that it misses the
decimal separator.
Is there any way to do this, using the same method (on VB6 I used the
keypressed event to filter the...
|
by: ameen.abdullah |
last post by:
Hi Guys,
I have a textbox in windows form that should only accept alphabets,
numbers, spaces and underscore. If the textbox contains anyother
character it should display a msg at the time of validation.. Is there
any funciton in vb.net for this? or any other way??
Waiting for ur replies...
| |
by: garyusenet |
last post by:
I have a multiline textbox.
The size of the text box should be 75 characters wide, and 5 lines in
height like this: -
<---75 characters-->
<---75 characters-->
<---75 characters-->
<---75 characters-->
<---75 characters-->
|
by: =?Utf-8?B?SC5CLg==?= |
last post by:
Hi,
In the past, I was using a MFC CEdit control to display logged data (A lot
of Data). The control seems to have virtually no limit.
Now, I'm using a .Net TextBox. When I reach about 32768 characters it
doesn't take any more data.
How can I change this.
|
by: nedu |
last post by:
Hi All,
I am trying to include only the following characters in my textbox. Will anyone please provide me some source code or idea . .
Textbox must accept only 0-9, space ,hypens(-) and characters(a,b and Z)
Regards,
Nedu. M
|
by: robert.waters |
last post by:
I have an Access database frontend linked via ODBC to a large
(gigabytes) mysql database.
I need to view a large amount of data in a a textbox (variable up to
300K), but I receive a 'there isnt enough memory' error whenever I
scroll past N number of bytes in a textbox that has been filled with a
lot of data. I am not sure what N is, but for a large chunk of data
it occurs at about the halfway scroll, and smaller chunks might not
throw...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |