// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetDisabledColorSettings()
{
// Create an instance of a GcMask control.
GcMask gcMask1 = new GcMask();
// Sets the DisabledBackColor property.
gcMask1.DisabledBackColor = Color.Gray;
// Sets the DisabledForeColor property.
gcMask1.DisabledForeColor = SystemColors.ControlDarkDark;
// Sets the FlatStyle property.
gcMask1.FlatStyle = FlatStyleEx.Office2007Blue;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetDisabledColorSettings()
' Create an instance of a GcMask control.
Dim gcMask1 As New GcMask()
' Sets the DisabledBackColor property.
gcMask1.DisabledBackColor = Color.Gray
' Sets the DisabledForeColor property.
gcMask1.DisabledForeColor = SystemColors.ControlDarkDark
' Sets the FlatStyle property.
gcMask1.FlatStyle = FlatStyleEx.Office2007Blue
End Sub