I created the tool window extension in visual studio based on below link, How to ensure it is the first docked as tabbed window in the output project?
In the WizardPackage.cs these are the attributes am using
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[Guid(TeamsWizardPackage.PackageGuidString)]
[ProvideMenuResource("Menus.ctmenu", 0)]
[ProvideToolWindow(typeof(TeamsWindow), Orientation = ToolWindowOrientation.Left, DocumentLikeTool = true, Style = Microsoft.VisualStudio.Shell.VsDockStyle.Tabbed, Window = "3ae79031-e1bc-11d0-8f78-00a0c9110057")]
[ProvideToolWindowVisibility(typeof(TeamsWindow), VSConstants.UICONTEXT.SolutionExists_string, Name = "Teams Overview")]
The window is displayed at the third position. I need to show this window at the first position. I tried to close first two windows pro-grammatically but no clue on how to close them, Is there any way to show this window at the first position?