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