Insert variable at the cursor in an textbox
Posted on 2004-09-25
I've a function which inserts todays date in a textbox like this: textbox.Text = textbox.Text + date
As you can see the date gets written in the end of the textbox.
How it looks like now, if I insert the date:
"I was in Sweden. It was fun." + date
I wanna have it like this:
"I was in Sweden" + date + ". It was fun."
I've tested some with SelectStart and so on, but with no success.
Hopes you understand and are willing to help =)!