John_neuman
New member
- Joined
- May 7, 2008
- Messages
- 4
- Programming Experience
- 5-10
i have a problem with datetimepicker that when i have custom format i couldn't select date by clciking it in dropdown. but when i had a regular short or sth i could select date by clciking it on the datetimepicker dropdown.
in my code the datetime picker is in custom format with fomat as blank for empty display at the beginning
and once the user changes the value it goes to short format.
so i cannot select the date the firstime by clciking the dropdown. but after the first time i can select the date by clciking the dropdown easily
so how do i address this issue.
Any help
in my code the datetime picker is in custom format with fomat as blank for empty display at the beginning
VB.NET:
Private Sub Form_UNS_main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Eff_date.Format = DateTimePickerFormat.Custom
Eff_date.CustomFormat = " "
End Sub
VB.NET:
Private Sub Eff_date_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Eff_date.ValueChanged
Eff_date.Format = DateTimePickerFormat.Short
End Sub
so i cannot select the date the firstime by clciking the dropdown. but after the first time i can select the date by clciking the dropdown easily
so how do i address this issue.
Any help