|
-
Aug 26th, 2000, 12:12 PM
#1
Thread Starter
Lively Member
Can someone give me a hand?
got two questions:
1) How do you skip one whole line in a multiline locked textbox during run time by code? I want to put two strings on seperate lines.
2) When i edit the text property of a locked textbox i notice that the cursor still stays at the same place, how do i move it by code?
help is greatly appreciated.
-
Aug 26th, 2000, 12:18 PM
#2
Frenzied Member
to end a line of a text box, label, or msgbox us vbcrlf That should answer your first question.
Im not sure if you can chose where to put the cursor, but someone else could help you with that
text1.setfocus
hope i was of any help
-
Aug 26th, 2000, 12:21 PM
#3
Member
Answer 1
Use this
Code:
text1.text = "Hello" & chr(13) & chr(13) & "there"
---~^ Absalom ^~---
There is nobody in the world who knows everything there is no one his/her workforce who knows everything what really makes the person smart is that he/she is not affraid to ask for help.
-
Aug 26th, 2000, 12:26 PM
#4
Thread Starter
Lively Member
Thanks!
Thanks Steve! Thanks Absalom!
-
Aug 26th, 2000, 01:16 PM
#5
To move the I-Beam (|), use this:
This will set the | to the end without highlighting the text.
Code:
Text1.SelStart = Len(Text1.Text)
This will highlight all the text.
Code:
Text1.SelLength = Len(Text1.Text)
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
|