# Sidebar.DialogLocation Property

> Gets or sets the location of the dialog where the Sidebar is placed, if the Sidebar.IsPinned property is set to false. To place the dialog into the center of the top most control, the property value must be set to System.Drawing.Point.Empty. The default value is System.Drawing.Point.Empty.

- **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.DialogLocation Property
- **372 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/dialoglocation-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/dialoglocation-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/dialoglocation-property/llms-full.txt

---

### Description

Gets or sets the location of the dialog where the Sidebar is placed, if the [Sidebar.IsPinned](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/ispinned-property/llms-full.txt) property is set to false. To place the dialog into the center of the top most control, the property value must be set to `System.Drawing.Point.Empty`. The default value is `System.Drawing.Point.Empty`.

### Syntax

```csharp
public Point DialogLocation { get; set; }
```

```vbnet
Public Property DialogLocation As Point
```

### Examples

The following example uses `Sidebar.DialogLocation` to configure dialog location as part of the sidebar workflow. The change is then applied to the active document or user interface.

```csharp
sidebar.DialogLocation = new System.Drawing.Point(20, 20);
sidebar.Update();
```

```vbnet
sidebar.DialogLocation = New System.Drawing.Point(20, 20)
sidebar.Update()
```

---

## Nearby

- **Previous:** [Sidebar.ContentLayout Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/contentlayout-property/llms-full.txt)
- **Next:** [Sidebar.DialogSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/dialogsize-property/llms-full.txt)
