ComponentOne XmlEditor for WinForms: XmlEditor for WinForms Task-Based Help > Linking a ToolStrip to C1XmlEditor

Linking a ToolStrip to C1XmlEditor

You can link one of the four built-in ToolStrips to C1XmlEditor by setting the Editor 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 XmlEditorToolStrip and select Properties.

2.   In the Visual Studio Properties window, click the drop-down arrow next to the Editor property and select your C1XmlEditor.

Note: If you expand the Editor property node, you can set other properties for the C1XmlEditor here.

Setting the Editor property Programmatically

Add the following code to your form, in the Form_Load event, for example:

      Visual Basic

XmlEditorToolStripMain1.Editor = C1XmlEditor1

      C#

xmlEditorToolStripMain1.Editor = c1XmlEditor1;


Send comments about this topic to ComponentOne.
Copyright © 1987-2009 ComponentOne LLC. All rights reserved.