# TextControl.FrameRightClicked Event

> Occurs when a frame (image, text frame, chart, barcode or drawing) has been clicked on with the right mouse button. The event handler receives an argument of type FrameEventArgs containing data related to this event.

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

---

### Description

Occurs when a frame (image, text frame, chart, barcode or drawing) has been clicked on with the right mouse button. The event handler receives an argument of type [FrameEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/frameeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event FrameEventHandler FrameRightClicked;
```

```vbnet
Public Event FrameRightClicked As FrameEventHandler
```

### Examples

The following example records useful context when frame right clicked occurs.

```csharp
textControl.FrameRightClicked += (sender, e) =>
{
    Console.WriteLine($"Frame Right Clicked at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.FrameRightClicked,
    Sub(sender, e)
        Console.WriteLine($"Frame Right Clicked at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.FrameMoved Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/framemoved-event/llms-full.txt)
- **Next:** [TextControl.Frames Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/frames-property/llms-full.txt)
