Editor for WinForms Task-Based Help > Linking a ToolStrip to C1Editor |
You can link one of the four built-in ToolStrips to C1Editor by setting the Editor property.
To set the Editor property in the Visual Studio Properties window, follow these steps:
Note: If you expand the Editor property node, you can set other properties for the C1Editor here. |
Add the following code to your form, in the Form_Load event, for example:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1EditorToolStripMain1.Editor = C1Editor1 |
To write code in C#
C# |
Copy Code
|
---|---|
c1EditorToolStripMain1.Editor = c1Editor1; |