Window.WindowState Property

ClosedDescription

Sets and returns the state of the window.

ClosedSyntax

Window.WindowState = BtWindowState

Where BtWindowState can be any of the following constants:

ClosedRequirements

Version

BarTender 6.00 or higher

Edition

Automation, Enterprise Automation

ClosedRemarks

Use the Window.WindowState property to maximize and minimize the application window.

ClosedVB.NET Example

'Declare a BarTender application variable

Dim btApp As BarTender.Application

'Create a new instance of BarTender

btApp = New BarTender.Application

'Set the BarTender application visible

btApp.Visible = True

'Set the window state property

btApp.Window.WindowState = BarTender.BtWindowState.btMaximize

'End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)

ClosedC# Example

// Declare a BarTender application variable

BarTender.Application btApp;

// Create a new instance of BarTender

btApp = new BarTender.Application();

// Set the BarTender application visible

btApp.Visible = true;

// Set the window state property

btApp.Window.WindowState = BarTender.BtWindowState.btMaximize;

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);

Related Topics