469,645 Members | 1,751 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

How to increase .Net TextBox storage for large data

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.

Thanks,

Hugo
Aug 6 '07 #1
2 2682
By default you have TextLength set to this value.

If you set it to 0, you can use longer strings:

MSDN: "When this property is set to zero, the maximum length of the text
that can be entered in the control is limited only by available memory"
"H.B." <HB@discussions.microsoft.comwrote in message
news:3E**********************************@microsof t.com...
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.

Thanks,

Hugo

Aug 6 '07 #2
MaxLength is for input by the Keyboard. When software fills the TextBox, it
doesn't care about this value.

I tested filling my log window (TextBox) with MaxLength set to 0, 100 and
65535. The result was identical for all : impossible to put more than 32767
char in the TextBox.

"AlexS" wrote:
By default you have TextLength set to this value.

If you set it to 0, you can use longer strings:

MSDN: "When this property is set to zero, the maximum length of the text
that can be entered in the control is limited only by available memory"
"H.B." <HB@discussions.microsoft.comwrote in message
news:3E**********************************@microsof t.com...
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.

Thanks,

Hugo


Aug 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by utkanbir | last post: by
3 posts views Thread by Edmond Neo | last post: by
5 posts views Thread by aneesh | last post: by
13 posts views Thread by S.Tobias | last post: by
10 posts views Thread by Redhairs | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.