# Sidebar.ShowCloseButton Property

> Gets or sets a value indicating whether the Sidebar's close button is shown. The default value is true.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.Windows.Forms`
- **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.Windows.Forms > Sidebar.ShowCloseButton Property
- **273 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/showclosebutton-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/showclosebutton-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/showclosebutton-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether the Sidebar's close button is shown. The default value is `true`.

### Syntax

```csharp
public bool ShowCloseButton { get; set; }
```

```vbnet
Public Property ShowCloseButton As Boolean
```

### Examples

The following example uses `Sidebar.ShowCloseButton` to configure show close button as part of the sidebar workflow. The change is then applied to the active document or user interface.

```csharp
sidebar.ShowCloseButton = true;
sidebar.Update();
```

```vbnet
sidebar.ShowCloseButton = True
sidebar.Update()
```

---

## Nearby

- **Previous:** [Sidebar.IsSizable Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/issizable-property/llms-full.txt)
- **Next:** [Sidebar.ShowPinButton Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/showpinbutton-property/llms-full.txt)
