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