A textbox with the multiline property set to True can hold up to about 32k data. If I want to read a >32K text file and show the data, what control should I use?
Printable View
A textbox with the multiline property set to True can hold up to about 32k data. If I want to read a >32K text file and show the data, what control should I use?
Use EM_LIMITTEXT to extent of text limit and use WM_SETTEXT to set text larger 32k symbols.
> "I want to read a >32K text file and show the data"
Why? That's an awful lot for somebody to read.
What is the intended User going to do with all of it?
I'd suggest taking a temporary copy of the text file and then opening it in the [user's choice of] text file editor.
Regards, Phill W.
Or just use a richtextbox