Hi Ken,
Thanks for the response, unfortunately I think that perhaps I should have
been a little more specific.
I need to to know the location of the text cursor, not the mouse cursor. So
if there are 10 characters allowed in the textbox and the user has entered a
string of 6 characters but has gone back to edit the third character I need
to know that it is the third character that is being edited and not the
second (or any other) character.
I hope that this clarifies things a little.
Any further help would be greatly appreciated.
Neil R.
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:Oy******** *****@TK2MSFTNG P10.phx.gbl...
Hi,
TextBox1.MouseP osition
Ken
----------------------
"Neil Robbins" <ne**@talent-centre.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Could anyone suggest a way in which I could find the position of the
cursor
within a textbox.
I want to evaluate every keypress made within the textbox in order to
validate it but in order to do this I need to know where the cursor is
when
the key is pressed. So far I can't see how I could do this.
Any help would be very much appreciated,
Neil R.