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