DateTimePicker
-
Is it possible to show the calendar screen of a DateTimePicker control by clicking an image instead of clicking the control's downward triangle? I cannot find a property from the class for showing the calender screen. please help. Thanks.
Eric H.
-
Is it possible to show the calendar screen of a DateTimePicker control by clicking an image instead of clicking the control's downward triangle? I cannot find a property from the class for showing the calender screen. please help. Thanks.
Eric H.
-
AFAIK DateTimePicker exposes nothing about that down arrow. I can suggest either to go for a third party control or override OnPaint for the form and Paint an image on the down arrow.
Thank you, I will solve the problem by writting the following DateTimePicker1.Select() SendKeys.Send("%{DOWN}") If other suggestion, please advise
Eric H.
-
Thank you, I will solve the problem by writting the following DateTimePicker1.Select() SendKeys.Send("%{DOWN}") If other suggestion, please advise
Eric H.
-
My bad. I thought you need to replace the down arrow of the datetimepicker with some other image. Your requirement seems different. Although, still not clear to me.
I will try to be clearer. When you click the DateTimePicker control, at run time, the calendar is popping-up, doesn't it? What I needed, instead of clicking the DateTimePicker control to get this popup window, is to click on a button and to get the same screen. My target was to put on a button an icon of calendar and when the user click the button he will get the popup screen. I hope it was clear now.
Eric H.
-
I will try to be clearer. When you click the DateTimePicker control, at run time, the calendar is popping-up, doesn't it? What I needed, instead of clicking the DateTimePicker control to get this popup window, is to click on a button and to get the same screen. My target was to put on a button an icon of calendar and when the user click the button he will get the popup screen. I hope it was clear now.
Eric H.
You can always build your own control/dialog, using
MonthCalendar
and pop that up in response to the button click.Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”