-
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.
-
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 :D
-
Answer 1
Use this
Code:
text1.text = "Hello" & chr(13) & chr(13) & "there"
-
Thanks!
Thanks Steve! Thanks Absalom!
-
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)