468,139 Members | 1,454 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,139 developers. It's quick & easy.

I need help simulating the DateTimePicker control

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
Jul 21 '05 #1
0 960

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.