# DrawingFrame.Activate Method

> Activates the drawing so that its contents can be edited. A drawing can only be activated, if the text part that contains the drawing has the input focus.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.DataVisualization`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DataVisualization > DrawingFrame.Activate Method
- **314 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/drawingframe/activate-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/drawingframe/activate-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/drawingframe/activate-method/llms-full.txt

---

### Description

Activates the drawing so that its contents can be edited. A drawing can only be activated, if the text part that contains the drawing has the input focus.

### Syntax

```csharp
public bool Activate();
```

```vbnet
Public Function Activate() As Boolean
```

### Return Value

The return value is true, if the drawing could be activated. Otherwise it is false.

### Examples

The following example activates the drawing frame.

```csharp
if (drawingFrame.Activate())
{
    Console.WriteLine("Activate completed successfully.");
}
```

```vbnet
If drawingFrame.Activate() Then
    Console.WriteLine("Activate completed successfully.")
End If
```

---

## Nearby

- **Previous:** [DrawingFrame Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/drawingframe/llms-full.txt)
- **Next:** [DrawingFrame.AddUndoUnit Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/drawingframe/addundounit-method/llms-full.txt)
