Application.ParentWindow Property

ClosedDescription

Sets or returns the window handle (hWnd) of the control that will be the parent of the BarTender application window.

ClosedSyntax

Application.ParentWindow = Value

Where Value is an integer representing the hWnd of the parent window.

ClosedRequirements

Version

BarTender 9.2 or higher

Edition

Automation, Enterprise Automation

ClosedVB.NET Example

'Declare a BarTender application variable

Dim btApp As BarTender.Application

'Create a new instance of BarTender variable

btApp = New BarTender.Application

'Set the BarTender application visible

btApp.Visible = True

'Display the hWnd of BarTender's parent window

MessageBox.Show(btApp.ParentWindow.ToString)

'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;

// Display the hWnd of BarTender's parent window

MessageBox.Show(btApp.ParentWindow.ToString());

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);