_DTE.DisplayMode Property
Visual Studio 2015
Gets the display mode, either MDI or Tabbed Documents.
Assembly: EnvDTE (in EnvDTE.dll)
Sub DisplayModeExample() If DTE.DisplayMode = vsDisplay.vsDisplayMDI Then MsgBox("Environment is in MDI mode.") Else MsgBox("Environment is in Tabbed Documents mode.") End If End Sub
Show: