// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetNegativeColorSettings()
{
// Creates an instance of a GcNumber control.
GcNumber gcNumber1 = new GcNumber();
// Sets the NegativeColor for displaying the text when the value is negative.
gcNumber1.NegativeColor = Color.Red;
// Sets the UseNegativeColor for applying the NegativeColor settings.
gcNumber1.UseNegativeColor = true;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetNegativeColorSettings()
' Creates an instance of a GcNumber control.
Dim gcNumber1 As New GcNumber()
' Sets the NegativeColor for displaying the text when the value is negative.
gcNumber1.NegativeColor = Color.Red
' Sets the UseNegativeColor for applying the NegativeColor settings.
gcNumber1.UseNegativeColor = True
End Sub