// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetGridLineSettings()
{
// Creates the GcComboBox control.
GcComboBox gcComboBox1 = new GcComboBox();
// Sets the horizontal lines settings.
gcComboBox1.ListGridLines.HorizontalLines.Style = LineStyle.Hair;
gcComboBox1.ListGridLines.HorizontalLines.Color = SystemColors.ControlDark;
// Sets the vertical lines settings.
gcComboBox1.ListGridLines.VerticalLines.Style = LineStyle.Single;
gcComboBox1.ListGridLines.VerticalLines.Color = SystemColors.ControlDark;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetGridLineSettings()
' Creates the GcComboBox control.
Dim gcComboBox1 As New GcComboBox()
' Sets the horizontal lines settings.
gcComboBox1.ListGridLines.HorizontalLines.Style = LineStyle.Hair
gcComboBox1.ListGridLines.HorizontalLines.Color = SystemColors.ControlDark
' Sets the vertical lines settings.
gcComboBox1.ListGridLines.VerticalLines.Style = LineStyle.[Single]
gcComboBox1.ListGridLines.VerticalLines.Color = SystemColors.ControlDark
End Sub