' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetAppearanceSettings()
' Creates the GcMaskedComboBox control.
Dim gcMaskedComboBox1 As New GcMaskedComboBox()
' Creates the GradientEffect.
Dim gradienteffect As New GradientEffect()
gradienteffect.Direction = GradientDirection.Side
gradienteffect.EndColor = System.Drawing.Color.FromArgb(224, 224, 224)
' Sets the GradientEffect to the control.
gcMaskedComboBox1.ListGradientEffect = gradienteffect
' Sets the image of the item settings.
gcMaskedComboBox1.ImageAlign = System.Windows.Forms.HorizontalAlignment.Center
gcMaskedComboBox1.ImageWidth = 30
gcMaskedComboBox1.ShowListBoxImage = True
End Sub
// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetAppearanceSettings()
{
// Creates the GcMaskedComboBox control.
GcMaskedComboBox gcMaskedComboBox1 = new GcMaskedComboBox();
// Creates the GradientEffect.
GradientEffect gradienteffect = new GradientEffect();
gradienteffect.Direction = GradientDirection.Side;
gradienteffect.EndColor = System.Drawing.Color.FromArgb(224, 224, 224);
// Sets the GradientEffect to the control.
gcMaskedComboBox1.ListGradientEffect = gradienteffect;
// Sets the image of the item settings.
gcMaskedComboBox1.ImageAlign = System.Windows.Forms.HorizontalAlignment.Center;
gcMaskedComboBox1.ImageWidth = 30;
gcMaskedComboBox1.ShowListBoxImage = true;
}