VB6 Textbox

Started by
2 comments, last by jbadams 18 years, 12 months ago
I'm using a vb6 textbox to read a text file and store its contents, but it keeps capping at 65535 characters. I'm wondering if there is any way to bypass this? My prog is sort of a Notepad ripoff, and I'm wondering how that program doesn't cap in this way.
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!
Advertisement
I believe this is the max length of a VB6 textbox control. I would advise using a RichTextBox control instead this can hold 2 Billion chars as appossed to only 65K for a textbox control. You will probably find that notepad does not use the VB ocx textbox control for its window as it was written in C++.
I see. I was hoping there was no limit to the size of the text. I'm wondering how one would handle pasting into a textbox when the pasted text won't fit. For example, if you're 2 characters short of full and you try to paste 5 characters as a string, what would you expect to happen? I like having the right-click menu available, but it's difficult because you essentially can't override the functionality of the paste command.
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!
It'll paste in everything up to the limit.

- Jason Astle-Adams

This topic is closed to new replies.

Advertisement