custom control - please read inside

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am creating a custom control (textbox) to validate input keystoke by leystoke.I know about keypress
to find which key has been pressed but I need to know the position of the cursor , so my question is
how do I find the position of the cursor ?
THANK YOU
 
* said:
I am creating a custom control (textbox) to validate input keystoke by leystoke.I know about keypress
to find which key has been pressed but I need to know the position of the cursor , so my question is
how do I find the position of the cursor ?

In the 'KeyPress' event handler, type "e." and have a look at the
members showed in the list.

You will find a VB6 implementation which can be converted to VB.NET/C#
here:

<http://www.vbarchiv.net/archiv/tipp_226.html>
 
Back
Top