' SaveLayout and LoadLayout can be done through a file path... Me.UltraChart1.SaveLayout(Me.ultraChart1, Application.StartupPath & "\myChartLayout.xml") Me.UltraChart2.LoadLayout(Me.ultraChart2, Application.StartupPath & "\myChartLayout.xml") ' or through XmlTextWriter/XmlTextReader objects Dim xTW As New System.Xml.XmlTextWriter(Application.StartupPath & "\myChartLayout.xml", System.Text.Encoding.Default) this.ultraChart1.SaveLayout(Me.ultraChart1, xTW) xTW.Close() Dim xTR As New System.Xml.XmlTextReader(Application.StartupPath & "\myChartLayout.xml") Me.ultraChart2.LoadLayout(Me.ultraChart2, xTR)
// SaveLayout and LoadLayout can be done through a file path... this.ultraChart1.SaveLayout(this.ultraChart1, Application.StartupPath + @"\myChartLayout.xml"); this.ultraChart2.LoadLayout(this.ultraChart2, Application.StartupPath + @"\myChartLayout.xml"); // or through XmlTextWriter/XmlTextReader objects System.Xml.XmlTextWriter xTW = new System.Xml.XmlTextWriter(Application.StartupPath + @"\myChartLayout.xml", System.Text.Encoding.Default); this.ultraChart1.SaveLayout(this.ultraChart1, xTW); xTW.Close(); System.Xml.XmlTextReader xTR = new System.Xml.XmlTextReader(Application.StartupPath + @"\myChartLayout.xml"); this.ultraChart2.LoadLayout(this.ultraChart2, xTR);