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:
textbox.text = strTextBeforeCursor & strTextInsert & strTextAfterCursor
Anyone else think there is an easier idea?
Thanks for your input!![]()




Reply With Quote