このメソッドは、SaveAsXml(Stream) メソッドで出力されるデータをロードします。
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button20.Click Try Dim stream As New FileStream("C:\\Layout.xml", FileMode.Open) If (Not stream Is Nothing) Then stream.Seek(0, SeekOrigin.Begin) Me.ultraExplorerBar1.LoadFromXml(stream) stream.Close() End If Catch Debug.WriteLine("Error encountered while loading stream!") End Try End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button20_Click(object sender, System.EventArgs e) { try { FileStream stream = new FileStream("C:\\Layout.xml", FileMode.Open); if (stream != null) { stream.Seek(0, SeekOrigin.Begin); this.ultraExplorerBar1.LoadFromXml(stream); stream.Close(); } } catch { Debug.WriteLine("Error encountered while loading stream!"); } }