Using the Window Object

BarTender’s appearance can be controlled using the Application.Window object. The Window object controls the location, size, and state of the application window, when it is visible.

In the following example, the Window object is used to set the size of the application window in pixels.

ClosedIn VB.NET

'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 height of the application window

btApp.Window.Height = 400

'Set the width of the application window

btApp.Window.Width = 600

'End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)

ClosedIn C#

// 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 height of the application window

btApp.Window.Height = 400;

// Set the width of the application window

btApp.Window.Width = 600;

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);

Related Topics