Applies to DotNetBar 5.9 or older only.

C#

System.IO.Stream stream=System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Notepad"+"."+dotNetBarManager1.DefinitionName);
System.Xml.XmlDocument document=new System.Xml.XmlDocument();
document.Load(stream);
dotNetBarManager1.Definition=document.InnerXml;

VB

Dim stream As System.IO.Stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(("Notepad" & ".") + dotNetBarManager1.DefinitionName)
Dim document As New System.Xml.XmlDocument()
document.Load(stream)
dotNetBarManager1.Definition = document.InnerXml

Note that you need to replace the “Notepad” in first line with your assembly name…

Related posts:

  1. How To Save Default Docking Layout
  2. How to Embed definition file in VC++
  3. Saving/Loading User Definitions
  4. Loading definition shows hidden MDI Child
  5. Command line compilation and licensing