Results 1 to 8 of 8

Thread: Insert text into a text box.[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Junior Member Morgoth's Avatar
    Join Date
    Mar 2005
    Posts
    20

    Resolved Insert text into a text box.[RESOLVED]

    Hello,

    I am trying to figure out how to insert a line of text into a text box where the cursor is located.

    Insert "Hello World" into a textbox.
    Text Box = "This is so|me text"
    | = Cursor
    Inserted Text Box = "This is soHello Worldme text"

    My first idea is to store the text before the cursor into a variable and the text after the cursor into another variable.
    To insert the text I just:
    VB Code:
    1. textbox.text = strTextBeforeCursor & strTextInsert & strTextAfterCursor

    Anyone else think there is an easier idea?


    Thanks for your input!
    Last edited by Morgoth; Apr 4th, 2005 at 05:30 PM. Reason: [RESOLVED]

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