# ButtonBar.Colors.ButtonPressedTop Property

> Gets or sets the background color at the top of a button used when the button is pressed down.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > ButtonBar.Colors.ButtonPressedTop Property
- **323 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonpressedtop-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonpressedtop-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonpressedtop-property/llms-full.txt

---

### Description

Gets or sets the background color at the top of a button used when the button is pressed down.

### Syntax

```csharp
public Color ButtonPressedTop { get; set; }
```

```vbnet
Public Property ButtonPressedTop As Color
```

### Examples

The following example uses `Colors.ButtonPressedTop` to configure button pressed top as part of the colors workflow. The configured value is checked before the workflow continues.

```csharp
colors.ButtonPressedTop = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Button Pressed Top used by Colors: {colors.ButtonPressedTop}");
```

```vbnet
colors.ButtonPressedTop = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Button Pressed Top used by Colors: {colors.ButtonPressedTop}")
```

---

## Nearby

- **Previous:** [ButtonBar.Colors.ButtonPressedBottom Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonpressedbottom-property/llms-full.txt)
- **Next:** [ButtonBar.Colors.ButtonSelectedBottom Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonselectedbottom-property/llms-full.txt)
