473,651 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6914
> 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****@NOSPAMh otpop.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
6802
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 string. Here's the code I'm running. How can I accomplish what I'm trying to do? Forms!FormB!MyTextBox.Text = "Hello"
4
4847
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 characters in a text box. However, when I paste in a large amount of text, the text box truncates it at exactly 32K characters. This is a problem, because I need to know exactly how many of each character were pasted; besides, I wasn't expecting the...
3
1317
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 I run against increasing this limit? Three: Information to be displayed can easily over pass the limit.
13
2422
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 an HTML textarea control, but without rich text formatting. I know you can just use a regular textbox and expand it, but it still has size limitations that I'm needing to overcome.
6
3194
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
3120
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" MaxLength="20" rows="2" TextMode="MultiLine"/> Thanks
2
5342
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
2890
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 enough memory' error whenever I scroll past N number of bytes in a textbox that has been filled with a lot of data. I am not sure what N is, but for a large chunk of data it occurs at about the halfway scroll, and smaller chunks might not throw...
0
1250
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 that is called either from my Windows Service as well as call as an .exe. There is no actual error from writing to the text box, but as I am leaving the call:
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8703
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5619
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.