// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetRecommendedValueSettings()
{
// Creates an instance of a GcTimeSpan control.
GcTimeSpan gcTimeSpan1 = new GcTimeSpan();
// Sets the RecommendedValue to DateTime.Now.
gcTimeSpan1.RecommendedValue = TimeSpan.Parse("00:00:00");
// Sets the ShowRecommendedValue to true, the control will display the RecommendedValue if the value is null.
gcTimeSpan1.ShowRecommendedValue = true;
// Sets the value of the GcTimeSpan to null.
gcTimeSpan1.Clear();
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetRecommendedValueSettings()
' Creates an instance of a GcTimeSpan control.
Dim gcTimeSpan1 As New GcTimeSpan()
' Sets the RecommendedValue to DateTime.Now.
gcTimeSpan1.RecommendedValue = TimeSpan.Parse("00:00:00")
' Sets the ShowRecommendedValue to true, the control will display the RecommendedValue if the value is null.
gcTimeSpan1.ShowRecommendedValue = True
' Sets the value of the GcTimeSpan to null.
gcTimeSpan1.Clear()
End Sub