Application.ProcessID Property

ClosedDescription

Returns the 'Process Identifier' number by which Windows recognizes the BarTender process. Read-only.

ClosedSyntax

Application.ProcessID

ClosedRequirements

Version

BarTender 9.2 SR1 or higher

Edition

Automation, Enterprise

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 process identifier

MessageBox.Show(btApp.ProcessID.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 process identifier

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

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);

Related Topics