By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,285 Members | 1,248 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,285 IT Pros & Developers. It's quick & easy.

Datetimepicker control

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
DC,

I don't completly understand your question, however do you mean the text? or
the value? or something else.

http://msdn.microsoft.com/library/de...mberstopic.asp

However there is never a should, you decide what you take.

Cor
Nov 21 '05 #2

P: n/a
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


"Cor Ligthert" <no************@planet.nl> wrote in message
news:e0*************@TK2MSFTNGP12.phx.gbl...
DC,

I don't completly understand your question, however do you mean the text? or the value? or something else.

http://msdn.microsoft.com/library/de...mberstopic.asp
However there is never a should, you decide what you take.

Cor

Nov 21 '05 #3

P: n/a
DC
Any ideas anyone?
"Cor Ligthert" <no************@planet.nl> wrote in message
news:e0*************@TK2MSFTNGP12.phx.gbl...
DC,

I don't completly understand your question, however do you mean the text? or the value? or something else.

http://msdn.microsoft.com/library/de...mberstopic.asp
However there is never a should, you decide what you take.

Cor

Nov 21 '05 #4

P: n/a
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
Nov 21 '05 #5

P: n/a
DC
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


"Cor Ligthert" <no************@planet.nl> wrote in message
news:uD**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.