Loads
UltraExplorerBar data from the specified stream previously saved in binary format.
The following code show how to load the control's state from a previously saved stream in binary format.
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
'Declaration
Public Overloads Sub LoadFromBinary( _
ByVal As Stream _
)
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!");
}
}
'Declaration
Public Overloads Sub LoadFromBinary( _
ByVal As 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