Version

Set the Text of WinCalendarCombo When the Date Value is Null

By default the WinCalendarCombo™ allows the Value to be cleared out. The string shown when the Value property has been cleared out is decided based on the NullDateLabel property. By default it is set to "(none)", though you can change this to whatever you want.

The following example code shows how to set this property.

Note
Note

In order to see the string get displayed in the WinCalenderCombo the control must lose focus.

In Visual Basic:

Private Sub Set_the_Text_of_WinCalendarCombo_When_the_Date_Value_is_Null_Load( _
  ByVal sender As Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraCalendarCombo1.NullDateLabel = "[Empty]"
End Sub

In C#:

private void Set_the_Text_of_WinCalendarCombo_When_the_Date_Value_is_Null_Load(
  object sender, EventArgs e)
{
	this.ultraCalendarCombo1.NullDateLabel = "[Empty]";
}
ultracalendarcombo showing custom empty text when data value is null