The following tasks show you how to save your C1Menu control as an .xml file and then load it into your project using the designer.
Save the C1Menu as XML
To save your tree as an XML file using the designer:
Load an Existing XML C1Menu into your Project
To load the C1Menu control you saved as an .xml file into your project:
Load an Existing XML C1Menu in Code
To load the C1Menu control you saved as an .xml file into your project:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1Menu1.LoadLayout("c:\\Visual Studio 2005\\WebSites\\LoadLayoutEX\\App_Data\\C1MenuControl.xml") |
To write code in C#
C# |
Copy Code
|
---|---|
C1Menu1.LoadLayout("c:\\Visual Studio 2005\\WebSites\\LoadLayoutEX\\App_Data\\C1MenuControl.xml"); |