473,401 Members | 2,139 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,401 software developers and data experts.

moving to next line in multiline text box after reaching 70char

hi to all
I am using vb 6.0
I want to move to the next line in the text box after reaching text length 70 characters can any one help me
Jan 26 '07 #1
7 6382
willakawill
1,646 1GB
hi to all
I am using vb 6.0
I want to move to the next line in the text box after reaching text length 70 characters can any one help me
Hi. If you set the multiline property of the textbox to true and set the width to accommodate 70 characters this will work.
Good luck
Jan 26 '07 #2
Killer42
8,435 Expert 8TB
Hi. If you set the multiline property of the textbox to true and set the width to accommodate 70 characters this will work.
Note though, for this to work you would have to set the textbox to a non-proportional font so that the characters are all the same width.

Even then, a fixed width like this can be hard to achieve, because Windows likes to do word-wrapping, so words will often jump down to the next line.
Jan 27 '07 #3
thank u for ur reply
how can i set the textbox to non-proportional font
Jan 27 '07 #4
willakawill
1,646 1GB
thank u for ur reply
how can i set the textbox to non-proportional font
Killer means something like Courier New.
Unless you need the textbox to be exactly 70 characters across this is not important.
Jan 27 '07 #5
Killer means something like Courier New.
Unless you need the textbox to be exactly 70 characters across this is not important.
ya i tried it now and it works thank u
and one more thing i am going to save this in ms access database before that i have to validate wheather each lines ended with comma or fullstop in that textbox because i have to cut the lines with less than or equal to 70 characters and it should be meaning full.
please help me to do this
thank u
Jan 27 '07 #6
ya i tried it now and it works thank u
and one more thing i am going to save this in ms access database before that i have to validate wheather each lines ended with comma or fullstop in that textbox because i have to cut the lines with less than or equal to 70 characters and it should be meaning full.
please help me to do this
thank u
Jan 27 '07 #7
Killer42
8,435 Expert 8TB
ya i tried it now and it works thank u
and one more thing i am going to save this in ms access database before that i have to validate wheather each lines ended with comma or fullstop in that textbox because i have to cut the lines with less than or equal to 70 characters and it should be meaning full.
please help me to do this
I think this is going to be more complicated than you expect.

So far you have not done anything to the text. Setting the width of the textbox, and the font, only affects how it is shown on the screen - there are no "line breaks" in the text (you can demostrate this by using Debug.Print to print the text to the immediate window). So it will be tough to work out where you want the commas or full stops.

It sounds as though you might have to independently re-create the word wrapping code, or something.
Jan 27 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Rocketman | last post by:
I am trying to find out when i reach the next line when multiline is switched on and i DON'T PRESS ENTER TO GO TO THE NEXT LINE(lines method is there for that purpose). Is there any other method i...
4
by: M O J O | last post by:
Hi, I'm using a RichTextBox with WordWrap=True and MultiLine=False. When the text is to long, it fills more lines. How do I get the number of lines the text uses? Thanks!
2
by: Carl Gilbert | last post by:
Hi I have a math kinda problem where I'm trying to split some lines when two or more lines connect two shapes. The reason I am doing this is to make it clear that there are multiple lines...
2
by: Allen | last post by:
In regex, ^ and $ shoudl match start/end of a line when the 'm' /multiline modifier is set -- however I just spent the better part of the day trying to figure out why it wasn't working as expected....
22
by: ashkaan57 | last post by:
Hi, I am trying to put text on left and right side of the page and used: <div> <span>blah blah</span> <span style="float:right">blah blah</span> </div> The 2nd text does go to the right but the...
2
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I'm trying to implement a backspace on the "bottom" line of a multiline text box. I want it to be ignored if it's already at the beginning of that line. I think I've got the part about...
4
by: MartinRinehart | last post by:
Thinking about unclosed multi-line quotes. When you open a multi-line quote (type '"""') what does your editor do? Does it color the remainder of your text as a quote, or does it color the line...
15
by: mcjason | last post by:
I saw something interesting about a grid pair puzzle problem that it looks like a machine when you find each that work out the way it does and say with all the others that work out the way they...
3
by: Avi | last post by:
Hi all, I have a web page with Multiline TextBox. Every 3 seconds I refresh the page and display all received messages in this TextBox. When the TextBox is updated (The Text property is set). ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.