# TextControl.TextMiniToolbarInitialized Event

> Occurs immediately after the built-in TextMiniToolbar was initialized. The event handler receives an argument of type MiniToolbarInitializedEventArgs containing the TextMiniToolbar that was created. The event is raised if the ShowMiniToolbar property is set to MiniToolbarButton.LeftButton, MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Event
- **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 > TextControl.TextMiniToolbarInitialized Event
- **504 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textminitoolbarinitialized-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textminitoolbarinitialized-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textminitoolbarinitialized-event/llms-full.txt

---

### Description

Occurs immediately after the built-in [TextMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textminitoolbar/llms-full.txt) was initialized. The event handler receives an argument of type [MiniToolbarInitializedEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbarinitializedeventargs/llms-full.txt) containing the [TextMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbarinitializedeventargs/minitoolbar-property/llms-full.txt) that was created. The event is raised if the [ShowMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/showminitoolbar-property/llms-full.txt) property is set to `MiniToolbarButton.LeftButton`, `MiniToolbarButton.RightButton` or `MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton`.

### Syntax

```csharp
public event MiniToolbarInitializedEventHandler TextMiniToolbarInitialized;
```

```vbnet
Public Event TextMiniToolbarInitialized As MiniToolbarInitializedEventHandler
```

### Examples

The following example records useful context when text mini toolbar initialized occurs.

```csharp
textControl.TextMiniToolbarInitialized += (sender, e) =>
{
    Console.WriteLine($"Text Mini Toolbar Initialized at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.TextMiniToolbarInitialized,
    Sub(sender, e)
        Console.WriteLine($"Text Mini Toolbar Initialized at {DateTime.Now:u}")
    End Sub
```

### Remarks

It is recommended to handle this event to determine the structure of the TextMiniToolbar. Toggling the visibility of items should be handled by the [TextControl.MiniToolbarOpening](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/minitoolbaropening-event/llms-full.txt) event.

---

## Nearby

- **Previous:** [TextControl.TextFrameSized Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textframesized-event/llms-full.txt)
- **Next:** [TextControl.TextParts Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textparts-property/llms-full.txt)
