• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1064
  • Last Modified:

Programatically open a DateTimePicker

When a checkbox is changed I want to make sure that the operators next step is to select a date from a datetimepicker. I can set the focus to the datetimepicker but it just highlights the month. How can I programatically make the datetimepicker dropdown and show the calendar?
0
Gary Samuels
Asked:
Gary Samuels
1 Solution
 
Kinger247Commented:
Try:

        DateTimePicker1.Focus()
        SendKeys.SendWait("%{DOWN}")
0
 
Gary SamuelsPlant ManagerAuthor Commented:
Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now