// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetRecommendedValueSettings()
{
// Creates an instance of a GcDate control.
GcDate gcDate1 = new GcDate();
// Sets the RecommendedValue to 2009/08/31.
gcDate1.RecommendedValue = new DateTime(2009, 8, 31);
// Sets the ShowRecommendedValue to true, the control will display the RecommendedValue if the value is null.
gcDate1.ShowRecommendedValue = true;
// Clears the value of the GcDate to null.
gcDate1.Clear();
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetRecommendedValueSettings()
' Creates an instance of a GcDate control.
Dim GcDate1 As New GcDate()
' Sets the RecommendedValue to 2009/08/31.
GcDate1.RecommendedValue = New DateTime(2009, 8, 31)
' Sets the ShowRecommendedValue to true, the control will display the RecommendedValue if the value is null.
GcDate1.ShowRecommendedValue = True
' Clears the value of the GcDate to null.
GcDate1.Clear()
End Sub