# TextControl.ObjectMiniToolbarInitialized Event

> Occurs immediately after the built-in ObjectMiniToolbar was initialized. The event handler receives an argument of type MiniToolbarInitializedEventArgs containing the ObjectMiniToolbar that was created. The event is raised if the ShowMiniToolbar property is set to 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.ObjectMiniToolbarInitialized Event
- **500 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/objectminitoolbarinitialized-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/objectminitoolbarinitialized-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/objectminitoolbarinitialized-event/llms-full.txt

---

### Description

Occurs immediately after the built-in [ObjectMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/objectminitoolbar/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 [ObjectMiniToolbar](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.RightButton` or `MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton`.

### Syntax

```csharp
public event MiniToolbarInitializedEventHandler ObjectMiniToolbarInitialized;
```

```vbnet
Public Event ObjectMiniToolbarInitialized As MiniToolbarInitializedEventHandler
```

### Examples

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

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

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

### Remarks

It is recommended to handle this event to determine the structure of the ObjectMiniToolbar. 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.MisspelledWords Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/misspelledwords-property/llms-full.txt)
- **Next:** [TextControl.OnAcceptsTabChanged Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onacceptstabchanged-method/llms-full.txt)
