Window.WindowState Property |
Sets and returns the state of the window.
Window.WindowState = BtWindowState
Where BtWindowState can be any of the following constants:
BtNormal: Shows the window in its normal state; has a value of 0.
BtMaximize: Maximizes the window; has a value of 1.
BtMinimize: Minimizes the window; has a value of 2.
Version |
BarTender 6.00 or higher |
Edition |
Automation, Enterprise Automation |
Use the Window.WindowState property to maximize and minimize the application window.
'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)
// 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