|
-
Sep 18th, 2000, 08:03 AM
#1
Thread Starter
Junior Member
1. How do I position text in a text box at run time??
2. I am populating a text box at runtime from a database, but each record does not appear in a new line. the records appear wrapped up. If I use vbcr for a new line, it comes as a "|" but no new line. the multiline property is set to true. How do I insert a new line?? Pleae help me with this stupid problem.
-
Sep 18th, 2000, 08:10 AM
#2
mastana , has got same problems with textbox.
I think it is a bug.
So I've used a listbox instead.
Try it out.
-
Sep 18th, 2000, 08:18 AM
#3
Frenzied Member
Use vbLf or vbCrLf instead of vbCr...
-
Sep 18th, 2000, 08:20 AM
#4
Lively Member
Instead of just putting vbCR at the end of the line use vbCrLf. This is carriage return line feed.
-
Sep 18th, 2000, 08:58 AM
#5
Hyperactive Member
You can also use vbNewLine. Same as vbCrLf only easier to remember.
-
Sep 18th, 2000, 09:55 AM
#6
New Member
Move
to move an object at runtime:
Text1(1).Move 100, 100
-
Sep 18th, 2000, 12:52 PM
#7
Thread Starter
Junior Member
formatting data in text
I have an access database with the structure:
Name(20)
Age(3)
Sex(1)
Address(50)
Now when I display the records in a text box, the data appears as:
mozart 20 M chvkhgodfgdfgds
beethoven 25 M ghkdfhghgkhgogjhohgfoh
Alex 18 M bfgkhkghljgjhogjho
Manish 23 M skdhfkhghgdg
How can I make this data appear symmetrical so that all the columns can fall in line and I can give proper column headings????
-
Sep 18th, 2000, 01:05 PM
#8
Monday Morning Lunatic
Try inserting a couple of vbTabs in between the columns. Better still, use a ListView control.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 18th, 2000, 01:08 PM
#9
Lively Member
Set the font name of the text box to courier
When you fill the text box have a max for each field.
For example let say your first field can be a max of 20. You would add a string like this
text1 = left$(sfield + space$(20),20)
What this will do is always give a set length for the data that you would add. Just continue doing this for each field.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|