Hi, I am building a user control and I am trying to simulate the
behavior of the DateTimePicker control. With DateTimePicker, when you
click on it the day or month or year is selected depending on where
you have clicked.
I know that when using OnMouseDown event I can get the mouse x and y
coordinates, but how could I know where the cursor is in the box?
(next to what character)
I need to know because I will then have to find the first "\"
preceding the cursor and the the last "\" after the cursor so I can
highlight this portion of text. Thanks for your toughts