Opening DateTimePicker Programatically

Mehyar

Junior Contributor
Joined
Jun 9, 2003
Messages
371
Location
Lebanon
All right....

Now I have a datetimepicker... What I need is to be able to do is, once the focus gets to the datetimepicker, I want the datetimepicker to open its calendar allowing the user to directly choose the date without him having to click on the arrow on the right of the control....

You know these user-friendliness issues :mad:

Timeline is ticking my friends :D
 
Hi, Mehyar

This is probably backwards compatibitity, but it works fine:

Code:
   Private Sub DateTimePicker1_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles DateTimePicker1.Enter
      SendKeys.Send("%{DOWN}")
   End Sub
 
Back
Top