Setting the null value to WinForms DateTimePicker.
Null value
Refer to the following code sample for setting null value to WinForms DateTimePicker.
C#
this.dateTimePickerAdv1.IsNullDate = true; //Another way this.dateTimePickerAdv1.BindableValue = null; //To clear text this.dateTimePickerAdv1.NullString = "";
VB
Me.dateTimePickerAdv1.IsNullDate = True 'Another way Me.dateTimePickerAdv1.BindableValue = Nothing 'To clear text Me.dateTimePickerAdv1.NullString = ""
Conclusion
I hope you enjoyed learning about how to set null value to WinForms DateTimePicker (DateTimePickerAdv).
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!