We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set null value to DateTimePickerAdv?

Refer to the following code sample for setting null value to DateTimePickerAdv.






Article ID: Published Date: Last Revised Date: Platform: Control:
1802 04/30/2011 10/15/2014 Windows Forms DateTimePickerAdv
Did you find this information helpful?
Frank Piplak Oct 08, 2014
vb: Êrror when using '.BindableValue = vbNull' and when using '.IsNullDate = True' text 'no date selected' shows
Saravanan Thirunavukkarasu [Syncfusion] Oct 13, 2014
Hi Frank, Sorry for the inconvenience caused, We have modified the reported code lines and also we suggest you to use IsNullDate property to clear the text in DateTimePickerAdv. Please use the below modified code snippet to set the null date in DateTimePickerAdv. Code Snippet [VB]: Me.dateTimePickerAdv1.IsNullDate = True Me.dateTimePickerAdv1.NullString = "" 'Another way Me.dateTimePickerAdv1.BindableValue = Nothing We have prepared a sample to achieve your requirement and it is available in below link. Link: http://www.syncfusion.com/downloads/support/directtrac/general/DateTimePickerAdv-1179293279.zip Please let us know if you need any further assistance, Regards, Saravanan T
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon