You can use the following code to extend datetime control and use this control insted of dateTimePicker
Public Class AdvDateTimePicker
Inherits DateTimePicker
Private WM_KEYUP As Integer = &H101
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
If m.Msg = WM_KEYUP Then
'ignore keyup to avoid problem with
Return
End If
MyBase.WndProc(m)
End Sub 'WndProc
End Class
Jitendra Kumar Vemula,
[email protected].