# MiniToolbarOpeningEventArgs.MiniToolbar Property

> Gets or sets the mini toolbar, which will be shown. To completely suppress a mini toolbar, the Cancel Property must be set to true. The property's value is of the type MiniToolbar.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **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 > MiniToolbarOpeningEventArgs.MiniToolbar Property
- **513 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbar-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbar-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbar-property/llms-full.txt

---

### Description

Gets or sets the [mini toolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/llms-full.txt), which will be shown. To completely suppress a mini toolbar, the `Cancel` Property must be set to true. The property's value is of the type [MiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/llms-full.txt).

### Syntax

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

```vbnet
Public Property MiniToolbar As MiniToolbar
```

### Examples

The following example uses `MiniToolbarOpeningEventArgs.MiniToolbar` while handling `MiniToolbarOpening`.

```csharp
textControl.MiniToolbarOpening += (_, e) =>
{
    e.MiniToolbar?.Select();
};
```

```vbnet
AddHandler textControl.MiniToolbarOpening,
    Sub(sender, e)
        If e.MiniToolbar IsNot Nothing Then e.MiniToolbar.Select()
    End Sub
```

### Remarks

If the MiniToolbar represents an object of type [TextMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/llms-full.txt) or [ObjectMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/llms-full.txt) it is recommended to use this property for toggling the visibility of their added or built-in context sensitive items. Determining the structure of these items should be handled by the [TextControl.TextMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textminitoolbarinitialized-event/llms-full.txt) or [TextControl.ObjectMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/objectminitoolbarinitialized-event/llms-full.txt) event.

---

## Nearby

- **Previous:** [MiniToolbarOpeningEventArgs.Location Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/location-property/llms-full.txt)
- **Next:** [MiniToolbarOpeningEventArgs.MiniToolbarContext Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbaropeningeventargs/minitoolbarcontext-property/llms-full.txt)
