is it possible to tab through the month/day/year on the DTP?
Printable View
is it possible to tab through the month/day/year on the DTP?
Yes it is.And where you need it in your code:VB Code:
Public Class tabDTP Inherits DateTimePicker Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean If keyData = Keys.Tab Then SendKeys.Send("{RIGHT}") Return True ElseIf keyData = (Keys.Shift Or Keys.Tab) Then SendKeys.Send("{Left}") Return True Else Return MyBase.ProcessDialogKey(keyData) End If End Function End ClassVB Code:
Dim myDTP as New tabDTP