I am trying to get the date from the database fields. If the date is not found it goes to a function where the string is set to " / / " based on "DD/MM/YYYY" format.
Public Overrides Property Text() As String
Get
Return MyBase.Value.ToString(MyBase.CustomFormat)
End Get
Set(ByVal value As String)
MyBase.Text = value
End Set
End Property
MyBase.Text = value
This is where the error occurs when I am trying to set value to MyBase.Text MyBase is set to System.Windows.Forms.DateTimePicker. All I want to do is that if the Date doesn't exist I want to set the value to " / / ". Any suggestions as I've been trying to figure a way to work with it with minimal code changes to my application.