Datetimepicker control

  • Thread starter Thread starter DC
  • Start date Start date
D

DC

Hi All,

Is there any way to find out which portion of a datetimepicker control in a
windows form has been selected?

Thanks.
DC
 
Hi Cor,

Thanks for responding.
In the datetimepicker control, know how the cursor moves between DAY, MONTH
and YEAR when you use the arrow keys.
Suppose I am in the DAY portion of the datetimepicker control and use the
[right arrow] key, the cursor moves to the [MONTH] portion, and the MONTH is
selected.
This is what I want to trap.
I want to know which portion in the datetimepicker control has been
selected.

Regards,
DC
 
DC,

Sorry, I have looked however not really found an answer, you can of course
check the clicks and the points to screen however that is a solution that
takes a lot of time.

Cor
 
I tried the click and screen point, but no luck.
I even tried to loop thru subcontrols in datetimepicker, but it appears not
to have any sub-controls.
Oh well. I suppose that is the functionality of the control :-(

Thanks for your effort Cor, much appreciated.
Regards,
DC
 
Back
Top