How to increase .Net TextBox storage for large data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top