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