[]
A border color can be applied to C1DateEdit, C1Label, C1NumericEdit, C1DropDownControl, and C1TextBox controls.
To create a border color for the C1DropDownControl at design time
To create a border color for the C1DropDownControl programmatically
Use the following code to add a border color to the C1DropDownControl:
To write code in Visual Basic
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dropdown As New C1DropDownControl
Me.Controls.Add(dropdown)
dropdown.BorderStyle = BorderStyle.FixedSingle
dropdown.BorderColor = Color.Red
End Sub
To write code in C#
private void Form1_Load(object sender, EventArgs e)
{
C1DropDownControl dropdown = new C1DropDownControl();
this.Controls.Add(dropdown);
dropdown.BorderStyle = BorderStyle.FixedSingle;
dropdown.BorderColor = Color.Red;
}
This topic illustrates the following:
A red border color with a fixed single border style is added to the C1DropDownControl.