Window.Handle Property

ClosedDescription

Returns the window handle (HWND) of the BarTender window. Read-only.

ClosedSyntax

Window.Handle

ClosedRequirements

Version

BarTender 10.1 or higher

Edition

Automation

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

'Display the HWND

MessageBox.Show(btApp.Window.Handle.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

MessageBox.Show(btApp.Window.Handle.ToString());

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);

Related Topics