-
I am trying to have a certain character or text inserted automatically inside a text box when i push a cmd button. I would really like to be able to insert the character exactly where the cursor is. I cannot figure out how to do it. please help. it will be greatly appreciated.
thanks stephen.
-
Use the SelText Property.
Code:
Private Sub Command1_Click()
Text1.SelText = "This is entered where ever the | is."
End Sub
[Edited by Matthew Gates on 08-12-2000 at 02:54 PM]
-
thanks, I tried something similar but didn't think about using seltext..
thanks again, stephen