This method loads the data emitted by the SaveAsBinary(Stream) method.
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!"); } }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2