Click or drag to resize
Sandcastle Help File BuilderStatusBarTextProviderApplicationStatusBar Property
This is used to set or get the default status bar component to use for displaying the status bar text messages.

Namespace: SandcastleBuilder.Utils.Controls
Assembly: SandcastleBuilder.Utils (in SandcastleBuilder.Utils.dll) Version: 2014.11.22.0
Syntax
public static Object ApplicationStatusBar { get; set; }

Property Value

Type: Object
This property is static and must be set at some point during application initialization. This component will be used unless the InstanceStatusBar property is set to override it.
Exceptions
ExceptionCondition
ArgumentExceptionThis is thrown if the object is not a status bar control or a tool strip item.
Examples
VB
' Define the default status bar to use in the main form's
' constructor
Public Sub New()
    MyBase.New()

    InitializeComponent()

    '=========
    ' .NET 1.1
    '=========
    ' Tell the StatusBarTextProvider component the status bar
    ' to use.
    StatusBarTextProvider.ApplicationStatusBar = sbStatusBar;

    ' You can also use any panel you like.  The default is zero
    ' (the left-most panel).  For the demo, we'll use the one
    ' in the middle.
    StatusBarTextProvider.ApplicationDisplayPanel = 1;

    '=========
    ' .NET 2.0
    '=========
    ' Tell the StatusBarTextProvider component the component
    ' to use to display the text.  When using a tool strip
    ' component, the ApplicationDisplayPanel property is ignored.
    StatusBarTextProvider.ApplicationStatusBar = tslStatusText;

    ' Define the status label and progress bar too.  This allows
    ' easy access to those items from anywhere within the
    ' application.
    StatusBarTextProvider.StatusLabel = tslProgressNote;
    StatusBarTextProvider.ProgressBar = tspbProgressBar;
End Sub
// Define the default status bar to use in the main form's
// constructor
public MainForm()
{
    InitializeComponent();

    //=========
    // .NET 1.1
    //=========
    // Tell the StatusBarTextProvider component the status bar
    // to use.
    StatusBarTextProvider.ApplicationStatusBar = sbStatusBar;

    // You can also use any panel you like.  The default is zero
    // (the left-most panel).  For the demo, we'll use the one
    // in the middle.
    StatusBarTextProvider.ApplicationDisplayPanel = 1;

    //=========
    // .NET 2.0
    //=========
    // Tell the StatusBarTextProvider component the component
    // to use to display the text.  When using a tool strip
    // component, the ApplicationDisplayPanel property is ignored.
    StatusBarTextProvider.ApplicationStatusBar = tslStatusText;

    // Define the status label and progress bar too.  This allows
    // easy access to those items from anywhere within the
    // application.
    StatusBarTextProvider.StatusLabel = tslProgressNote;
    StatusBarTextProvider.ProgressBar = tspbProgressBar;
}
See Also