// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetAppearanceSettings()
{
// Creates the GcComboBox control.
GcComboBox gcComboBox1 = new GcComboBox();
// 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.
gcComboBox1.ListGradientEffect = gradienteffect;
// Sets the image of the item settings.
gcComboBox1.ImageAlign = System.Windows.Forms.HorizontalAlignment.Center;
gcComboBox1.ImageWidth = 30;
gcComboBox1.ShowListBoxImage = true;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetAppearanceSettings()
' Creates the GcComboBox control.
Dim gcComboBox1 As New GcComboBox()
' 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.
gcComboBox1.ListGradientEffect = gradienteffect
' Sets the image of the item settings.
gcComboBox1.ImageAlign = System.Windows.Forms.HorizontalAlignment.Center
gcComboBox1.ImageWidth = 30
gcComboBox1.ShowListBoxImage = True
End Sub