I currently have a datetimepicker on a form and a sepertae check box next to it. the dtp is not enabled. When the check box is ticked the dtp becomes enabled, now here lies my problem, when i click the check box to enable the dtp it does enable but it jumps from its position on the form upto the top left corner. If i then click the checkbox again the dtp returns to its original position and is disabled. Here is my code
'if checkbox ticked then enable the datetimepicker
If chkEndDate.Valu e = 0 Then
dtpEndDate.Enab led = False
ElseIf chkEndDate.Valu e = -1 Then
dtpEndDate.Enab led = True
End If
Any help would be much appreciated.
'if checkbox ticked then enable the datetimepicker
If chkEndDate.Valu e = 0 Then
dtpEndDate.Enab led = False
ElseIf chkEndDate.Valu e = -1 Then
dtpEndDate.Enab led = True
End If
Any help would be much appreciated.
Comment