このメソッドは、SaveAsBinary(Stream) メソッドで出力されるデータをロードします。
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button19.Click Try Dim stream As New FileStream("C:\\Layout.bin", FileMode.Open) If (Not stream Is Nothing) Then stream.Seek(0, SeekOrigin.Begin) Me.ultraExplorerBar1.LoadFromBinary(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 button19_Click(object sender, System.EventArgs e) { try { FileStream stream = new FileStream("C:\\Layout.bin", FileMode.Open); if (stream != null) { stream.Seek(0, SeekOrigin.Begin); this.ultraExplorerBar1.LoadFromBinary(stream); stream.Close(); } } catch { Debug.WriteLine("Error encountered while loading stream!"); } }