# TextControl.DrawingActivated Event

> Occurs when a drawing has been activated. The event handler receives an argument of type DrawingEventArgs containing data related to this event. A drawing is activated, when the user clicks the drawing with the mouse. The user can alter the drawing's contents, when it is activated. When the user clicks on the drawing's border, it is selected. A selected drawing can be sized, moved or copied to the clipboard.

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

---

### Description

Occurs when a drawing has been activated. The event handler receives an argument of type [DrawingEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/drawingeventargs/llms-full.txt) containing data related to this event. A drawing is activated, when the user clicks the drawing with the mouse. The user can alter the drawing's contents, when it is activated. When the user clicks on the drawing's border, it is selected. A selected drawing can be sized, moved or copied to the clipboard.

### Syntax

```csharp
public event DrawingEventHandler DrawingActivated;
```

```vbnet
Public Event DrawingActivated As DrawingEventHandler
```

### Examples

The following example records useful context when drawing activated occurs.

```csharp
textControl.DrawingActivated += (sender, e) =>
{
    Console.WriteLine($"Drawing Activated at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.DrawingActivated,
    Sub(sender, e)
        Console.WriteLine($"Drawing Activated at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.DocumentToClient Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/documenttoclient-method/llms-full.txt)
- **Next:** [TextControl.DrawingClicked Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/drawingclicked-event/llms-full.txt)
