# Linking a ToolStrip to C1Editor

Learn how to link the four built-in ToolStrips to C1Editor control with the help of Editor property.

## Content



You can link one of the four built-in ToolStrips to [C1Editor](/componentone/api/win/online-richtexteditor/dotnet-framework-api/C1.Win.C1Editor.4.8/C1.Win.C1Editor.C1Editor.html) by setting the [Editor](/componentone/api/win/online-richtexteditor/dotnet-framework-api/C1.Win.C1Editor.4.8/C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.Editor.html) property.

### Setting the Editor property using the Properties Window

To set the Editor property in the Visual Studio Properties window, follow these steps:

1.  Right-click your **EditorToolStrip** and select **Properties**.
2.  In the Visual Studio Properties window, click the drop-down arrow next to the Editor property and select your C1Editor.


> type=note
> **Note**: If you expand the Editor property node, you can set other properties for the C1Editor here.

### Setting the Editor property Programmatically

Add the following code to your form, in the **Form\_Load** event, for example:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
C1EditorToolStripMain1.Editor = C1Editor1
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
c1EditorToolStripMain1.Editor = c1Editor1;
```

DOC-DETAILS-TAG-CLOSE