# Displaying a Border Color for the C1Input Controls

This topic provides info about displaying border color for C1Input.

## Content



A border color can be applied to **C1DateEdit**, **C1Label**, **C1NumericEdit**, **C1DropDownControl**, and **C1TextBox** controls.

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To create a border color for the C1DropDownControl at design time

DOC-SUMMARY-TAG-CLOSE

1.  Add a **C1DropDownControl** to your form.
2.  Navigate to C1DropDownControl’s properties window and set the **BorderStyle** property to “FixedSingle”.
3.  Change C1DropDownControl’s **BorderColor** property to “Red”.

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To create a border color for the C1DropDownControl programmatically

DOC-SUMMARY-TAG-CLOSE

Use the following code to add a border color to the C1DropDownControl:

To write code in Visual Basic

```vbnet
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#

```csharp
private void Form1_Load(object sender, EventArgs e)
        {
            C1DropDownControl dropdown = new C1DropDownControl();
            this.Controls.Add(dropdown);
            dropdown.BorderStyle = BorderStyle.FixedSingle;
            dropdown.BorderColor = Color.Red;
        }
```

DOC-DETAILS-TAG-CLOSE

<br />**![tick](https://cdn.mescius.io/document-site-files/images/6c2f30e9-4d3a-4f86-b649-ecbef777b3a3/images/ticksymbol.png)This topic illustrates the following**:

A red border color with a fixed single border style is added to the **C1DropDownControl**.

![c1input_bordercolor_property](https://cdn.mescius.io/document-site-files/images/6c2f30e9-4d3a-4f86-b649-ecbef777b3a3/images/c1input_bordercolor_property.png)

## See Also

[Showing a Message Box when the Border Color Changes](/componentone/docs/win/online-input/inputforwinformstask/showingamessageboxwh)