473,322 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Textbox limit

Hi all,
I've worked out that the limit of a textbox is 64Kb. What can I do if
the I want to work with text which is, say four or five times as much?
Can I extend the limit (maxlength??) of the text box or do I have to
change the textbox for some other component? And yes, I'm very very
new to VB ;)

Thank you.
Jul 17 '05 #1
3 6906
> What can I do if
the I want to work with text which is, say four or five times as much?
Can I extend the limit (maxlength??) of the text box or do I have to
change the textbox for some other component? And yes, I'm very very
new to VB ;)


You could use a RTFbox instead. Rightclick left toolbar -> Components... ->
Check "Microsoft Rich Text Box" -> OK
Jul 17 '05 #2
On Wed, 1 Dec 2004 22:15:01 +0100, "Noozer" <no****@NOSPAMhotpop.com>
wrote:

You could use a RTFbox instead. Rightclick left toolbar -> Components... ->
Check "Microsoft Rich Text Box" -> OK


Althougth you would have thought you could just substitute one for the
other, the RTF seems to screw up the instr function. - Or at least get
different values from the original txtbox. Can anyone shed anylight on
this confusion?


Jul 17 '05 #3
> >You could use a RTFbox instead. Rightclick left toolbar ->
Components... ->
Check "Microsoft Rich Text Box" -> OK

Althougth you would have thought you could just substitute one for the
other, the RTF seems to screw up the instr function. - Or at least get
different values from the original txtbox. Can anyone shed anylight on
this confusion?


It should work as expected on the Text property (as opposed to the
TextRTF property). On the other hand, InStr isn't really needed since
the RichTextBox provides a Find method that you can use which, if set
to, can automatically highlight the text being searched for. In
addition, the Find method can be set to look for whole word matches as
opposed to mere text matches (this lets you find all of the "the" words
without finding it in the middle of "mother" or "father" for example).
And, also in addition, it can be set to search between a start and end
position within the file, so you can narrow your search to a specific
area of the text if desired. You should check it out in the help files.

Rick - MVP

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: MLH | last post by:
This property is only available only when the control has the focus... Error #2185 I get the above error when code running in FormA is trying to set the value of a hidden textbox on FormB to a...
4
by: Paul E Collins | last post by:
I'm writing an application with a TextBox control on its main form. I'm running the application under WinXP Pro, so (as I understand it) there should be no practical limit to the number of...
3
by: N! Xau | last post by:
Hi, I am using a textbox to display, row by row, results of Database-related operation. One, is this a valid method or not? Two, I see textbox.maxlength defaulted to 32767. What problems do...
13
by: Randy Jackson | last post by:
Hello, I'm creating a sample portfolio application for MS-Access XP, and I'm wondering if there's a suitable replacement for the ms-access textbox control. I'm looking for something similar to...
6
by: Avi G | last post by:
Hi, what is the code to limit a textbox that will accept only text and not number private void button1_Click(object sender, EventArgs e) { if (textBox1.Text = "numbers") { // do something }
2
by: Terry | last post by:
Hi, i want to limit input in this textbox up to 2O characters, but i can input a unlimited amount of characters. How to limit that? <asp:TextBox ID="txtStreet" runat="server" Width="200px"...
2
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I've a multiLine Textbox, and i want to limit each line to a maximum number of charecters. How can i do it? Thanks, Gidi.
7
by: robert.waters | last post by:
I have an Access database frontend linked via ODBC to a large (gigabytes) mysql database. I need to view a large amount of data in a a textbox (variable up to 300K), but I receive a 'there isnt...
0
by: tshad | last post by:
I seem to have hit some sort of limit of a textbox (multiline). It was working fine for a while, but now I am getting a strange error having nothing to do with the problem. I have a Function...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.