// 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 width of the application window
                
                btApp.Window.Width = 250;
                
                // End the BarTender process 
                
                btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);