Results 1 to 5 of 5

Thread: locked textboxes

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    74

    Smile

    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.

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Talking

    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

  3. #3
    Member
    Join Date
    Jul 2000
    Location
    Ontario, Canada
    Posts
    61
    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.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    74

    Thumbs up Thanks!

    Thanks Steve! Thanks Absalom!

  5. #5
    Guest
    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
  •  



Click Here to Expand Forum to Full Width