// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetRecommendedValueSettings()
{
// Creates an instance of a GcTime control.
GcTime gcTime1 = new GcTime();
// Sets the RecommendedValue to 12:00:00.
gcTime1.RecommendedValue = new TimeSpan(12, 0, 0);
// Sets the ShowRecommendedValue to true, the control will display the RecommendedValue if the value is null.
gcTime1.ShowRecommendedValue = true;
// Clears the value of the GcTime to null.
gcTime1.Clear();
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetRecommendedValueSettings()
' Creates an instance of a GcTime control.
Dim gcTime1 As New GcTime()
' Sets the RecommendedValue to 12:00:00.
gcTime1.RecommendedValue = New TimeSpan(12, 0, 0)
' Sets the ShowRecommendedValue to true, the control will display the RecommendedValue if the value is null.
gcTime1.ShowRecommendedValue = True
' Clears the value of the GcTime to null.
gcTime]1.Clear()
End Sub