# Getting Started with WinForms Panel

This tutorial will help you to quickly get started using the control.

## Adding Telerik Assemblies Using NuGet

To use `RadPanel` when working with NuGet packages, install the `Telerik.UI.for.WinForms.AllControls` package. The [package target framework version may vary](https://www.telerik.com/products/winforms/documentation/visual-studio-integration/available-nugets).

Read more about NuGet installation in the [Install using NuGet Packages](https://www.telerik.com/products/winforms/documentation/installation-and-upgrades/install-using-nuget) article.

> tip With the 2025 Q1 release, the Telerik UI for WinForms has a new licensing mechanism. You can learn more about it [here](https://www.telerik.com/products/winforms/documentation/licensing/license-key).

## Adding Assembly References Manually

When dragging and dropping a control from the Visual Studio (VS) Toolbox onto the Form Designer, VS automatically adds the necessary assemblies. However, if you're adding the control programmatically, you'll need to manually reference the following assemblies:

* **Telerik.Licensing.Runtime**
* **Telerik.WinControls**
* **Telerik.WinControls.UI**
* **TelerikCommon**

The Telerik UI for WinForms assemblies can be install by using one of the available [installation approaches](https://www.telerik.com/products/winforms/documentation/installation-and-upgrades/installing-on-your-computer).

## Defining the RadPanel

You can add a **RadPanel** either at design time or at run-time:

## Design Time

1. To add a **RadPanel** to your form, drag a **RadPanel** from the toolbox onto the surface of the form designer.
2. In the *Properties* section in Visual Studio change the **Dock** property of **RadPanel** to *Fill*.
3. Drag another control from the toolbox and place it on the panel.
4. Click `F5` to start the application.

## Run Time

To programmatically add a **RadPanel** to a form, create a new instance of a **RadPanel**, and add it to the form\`s **Controls** collection. Change its **Text**, **ForeColor**, and **BackColor** properties.

> caption Figure 1: RadPanel Run-time

![WinForms RadPanel Run-time](https://www.telerik.com/products/winforms/documentation/assets/83e91e6e796db817a526573042a035aa/panels-and-labels-panel-getting-started001.png)

#### Adding a RadPanel at Run-time

```C#
RadPanel panel = new RadPanel();
this.Controls.Add(panel);

panel.ForeColor = Color.DarkBlue;
panel.BackColor = Color.LightBlue;
panel.PanelElement.PanelBorder.ForeColor = Color.Gray;
panel.Text = "I am a RadPanel!";
```

```VB.NET
Dim panel As New RadPanel()
Me.Controls.Add(panel)

panel.ForeColor = Color.DarkBlue
panel.BackColor = Color.LightBlue
panel.PanelElement.PanelBorder.ForeColor = Color.Gray
panel.Text = "I am a RadPanel!"
```

## Programming RadPanel

**RadPanel** shares most of the properties of the standard Windows Form Panel, including:

* The **BackColor** property sets the background color of the control.

* The **BackgroundImage** and **BackgroundImageLayout** properties allow you to tile, center, stretch, or zoom an image across the control.

* The **ForeColor** property sets the control\`s text color.

* The **Text** property sets the text in the control.

The example below has the **BackgroundImage** property set to the Progress logo.

> caption Figure 2: RadPanel BackgroundImage

![WinForms RadPanel BackgroundImage](https://www.telerik.com/products/winforms/documentation/assets/9bba8f49422dd0ae07aae75f600b184e/panels-and-labels-panel-getting-started002.png)

## See Also

* [Design Time](https://www.telerik.com/products/winforms/documentation/controls/panels-and-labels/panel/design-time)
* [Structure](https://www.telerik.com/products/winforms/documentation/controls/panels-and-labels/panel/structure)

## Telerik UI for WinForms Learning Resources

* [Telerik UI for WinForms Panel Component](https://www.telerik.com/products/winforms/panel.aspx)
* [Getting Started with Telerik UI for WinForms Components](https://docs.telerik.com/devtools/winforms/getting-started/first-steps)
* [Telerik UI for WinForms Setup](https://docs.telerik.com/devtools/winforms/installation-and-upgrades/installing-on-your-computer)
* [Telerik UI for WinForms Converter](https://www.telerik.com/products/winforms/documentation/ai-coding-assistant/converter/converter)
* [Telerik UI for WinForms Visual Studio Templates](https://docs.telerik.com/devtools/winforms/visual-studio-integration/visual-studio-templates)
* [Deploy Telerik UI for WinForms Applications](https://docs.telerik.com/devtools/winforms/deployment-and-distribution/application-deployment)
* [Telerik UI for WinForms Virtual Classroom(Training Courses for Registered Users)](https://learn.telerik.com/learn/course/external/view/elearning/17/telerik-ui-for-winforms)
* [Telerik UI for WinForms License Agreement)](https://www.telerik.com/purchase/license-agreement/winforms-dlw-s)
