Search code examples
vb6textboxcursor

How to insert text into TextBox at cursor point?


How can you insert text into a TextBox at the current cursor position?


Solution

  • Text can be inserted at the current cursor position of a TextBox by setting SelText to a string:

    TextBox1.SelText = "text to be inserted"