| InputPanel for WinForms Task-Based Help > Formatting C1InputPanel's Error Frame |
The C1InputPanel component features an error frame that provides a visual alert to the user when an invalid value is entered in any of the input panel components. In this topic, you will learn how to format the error frame.
The ErrorFrameColor property is used to set the color of the error frame, and the ErrorFrameThickness property is used to set the thickness of the error frame. The default color is red, and the default width is 2.
To customize the C1InputPanel’s error frame:
To format the error frame, complete these steps:

![]() |
Note: To see the whole ErrorFrame when the program runs, you might need to increase the padding of the InputNumericBox. For more information, see Arranging Input Components Using Padding. |
Notice the thick, chartreuse-colored border around the InputNumericBox; this indicates an error by the end-user.
To format the error frame, complete these steps:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Imports C1.Win.C1InputPanel |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
using C1.Win.C1InputPanel; |
|
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Dim NewPanel As New C1InputPanel Controls.Add(NewPanel) Dim NewNumericBox As InputNumericBox = New InputNumericBox X.Items.Add(NewNumericBox) |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
C1InputPanel NewPanel = new C1InputPanel(); Controls.Add(NewPanel); InputNumericBox NewNumericBox = new InputNumericBox(); X.Items.Add(NewNumericBox); |
|
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
NewPanel.ErrorFrameColor = Color.Chartreuse |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
NewPanel.ErrorFrameColor = Color.Chartreuse; |
|
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
NewPanel.ErrorFrameThickness = 10; |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
NewPanel.ErrorFrameThickness = 10; |
|
![]() |
Note: To see the whole ErrorFrame when the program runs, you might need to increase the padding around the InputNumericBox. For more information, see Arranging Input Components Using Padding. |
Notice the thick, fuchsia-colored border around the InputNumericBox; this indicates an error by the end-user.