只用键盘操作,可以这样:
Private Sub DTPicker1_KeyDown(KeyCode As Integer, Shift As Integer)
If (KeyCode = vbKeyUp And DTPicker1.Day = 30) Or (KeyCode = vbKeyDown And DTPicker1.Day = 1) Then DTPicker1.Day = 31
End Sub
Private Sub Form_Load()
DTPicker1.Format = dtpCustom
DTPicker1.CustomFormat = "dd 日 hh 时 mm 分"
'DTPicker1.UpDown = True
End Sub