Jump to content
  • Advertisement
Sign in to follow this  
gamechampionx

VB6 Textbox

This topic is 4860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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++.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!