| InputPanel for WinForms Task-Based Help > Arranging C1InputPanel's Input Components > Arranging Input Components Using Padding |
You can easily arrange components on a C1InputPanel control by setting the Padding property of each component. In this topic, you will create a form with six components and manipulate them to create an aesthetically pleasing layout.
To arrange C1InputPanel components using the designer, follow these steps:
The C1InputPanel Item Collection Editor opens.
Observe that the components appear in the Members pane and on the C1InputPanel control as they are added.
After reorganizing the components, your C1InputPanel will resemble the following image:
| Padding Area | Setting |
|---|---|
| Left | 5 |
| Top | 20 |
| Right | 20 |
| Bottom | 10 |
| Padding Area | Setting |
|---|---|
| Left | 0 |
| Top | 10 |
| Right | 0 |
| Bottom | 0 |
| Padding Area | Setting |
|---|---|
| Left | 5 |
| Top | 0 |
| Right | 20 |
| Bottom | 0 |
| Padding Area | Setting |
| Left | 120 |
| Top | 22 |
| Right | 0 |
| Bottom | 0 |
To arrange C1InputPanel components programmatically, complete the following steps:
The C1InputPanel Item Collection Editor opens.


To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Imports System.Windows.Forms Imports C1.Win.C1InputPanel |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
using System.Windows.Forms; using C1.Win.C1InputPanel; |
|
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
inputLabel1.Padding = New Padding(5,20,20,10) inputLabel2.Padding = New Padding(5, 0, 20, 0) inputTextBox1.Padding = New Padding(0, 10, 0, 0) inputButton1.Padding = New Padding(120, 22, 0, 0) |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
inputLabel1.Padding = new Padding(5,20,20,10); inputLabel2.Padding = new Padding(5, 0, 20, 0); inputTextBox1.Padding = new Padding(0, 10, 0, 0); inputButton1.Padding = new Padding(120, 22, 0, 0); |
|
The result of this topic will resemble the following image: