Hi
From your description, I understand that you are using the
System.Windows.Forms.DateTimePicker, and you want to show the Calendar by
code.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.
Based on my research, the DateTimePicker control, did not expose such
interface for us to use for showing the Calendar. It only expose to the UI
interactive when you click the arrow in the control.
As a workaround, I think you may try to show another MonthCalendar control
in the proper place and interactive it with DateTimePicker.
e.g. When someone click one date 2,5, 2005 ,we can set it via the code
below.
Me.DateTimePicker1.Value = New Date(2002, 2, 5)
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.