How to keep track of cursor positiion in multi-line textbox?

  • Thread starter Thread starter Menno Abbink
  • Start date Start date
M

Menno Abbink

I'm writing a simple asp.net (with vb.net) guestbook application. I wan't
the users to be able to insert a emoticon in there message by clicking on
the emoticon of there choice. After clicking on the emoticon a little piece
of text will be added to there message (e.g. :smile:) at the exact location
where the cursor was before they clicked the emoticon.

How can I keep track of the cursos position to do this?

TIA.
 
Hi Menno,

You cannot do this kind of things with vb.net code on the client side in an
webform.

However in this newsgroup some days ago at Ruca there has somebody given an
answer for this question using JavaScript.

I am assuming you using a webform, with a window form it is possible.

Cor
 
Back
Top