# DialogBoxLauncher.ContextMenuStrip Property

> Gets or sets the ContextMenuStrip associated with this dialog box launcher.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.Windows.Forms.Ribbon`
- **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.Ribbon > DialogBoxLauncher.ContextMenuStrip Property
- **434 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/dialogboxlauncher/contextmenustrip-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/dialogboxlauncher/contextmenustrip-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/dialogboxlauncher/contextmenustrip-property/llms-full.txt

---

### Description

Gets or sets the ContextMenuStrip associated with this dialog box launcher.

### Syntax

```csharp
public ContextMenuStrip ContextMenuStrip { get; set; }
```

```vbnet
Public Property ContextMenuStrip As ContextMenuStrip
```

### Examples

The following example uses `DialogBoxLauncher.ContextMenuStrip` to configure context menu strip as part of the dialog box launcher workflow. The configured value is checked before the workflow continues.

```csharp
dialogBoxLauncher.ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip();
if (dialogBoxLauncher.ContextMenuStrip != null)
{
    Console.WriteLine("Dialog Box Launcher: Context Menu Strip is available.");
}
```

```vbnet
dialogBoxLauncher.ContextMenuStrip = New System.Windows.Forms.ContextMenuStrip()
If dialogBoxLauncher.ContextMenuStrip IsNot Nothing Then
    Console.WriteLine("Dialog Box Launcher: Context Menu Strip is available.")
End If
```

---

## Nearby

- **Previous:** [DialogBoxLauncher.Click Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/dialogboxlauncher/click-event/llms-full.txt)
- **Next:** [DialogBoxLauncher.Enabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/dialogboxlauncher/enabled-property/llms-full.txt)
