locked
Main window caption RRS feed

  • Question

  • Main window caption is like "SolutionName - ApplicationName". Is it possible to change this? I'm trying with EnvDTE.DTE but the interesting properties are readonly, as "dte.MainWindow.Caption" or "dte.Solution.FullName".

    I want to take control of the caption, at least of a part of it. If there is any way to do it, I would be immensely thankful to know it.
    Friday, August 14, 2015 5:20 PM

Answers

  • To show in main window caption only the application name and not the solution name (not "Solution1 - ApplicationName" but only "ApplicationName"), just edit in the main project, under Shell Customization folder, the file "ApplicationName.Application.pkgdef". Look for "ShowHierarchyRootInTitle":

    "ShowHierarchyRootInTitle"=dword:00000000


    That will be enough.
    • Marked as answer by pintope Friday, December 30, 2016 8:34 PM
    Friday, December 30, 2016 8:34 PM

All replies

  • AFAIK, you can't change that caption, unless you use the Win32 API (not sure).

    * My new blog about VSX: http://www.visualstudioextensibility.com * Twitter: https://twitter.com/VSExtensibility * MZ-Tools productivity extension for Visual Studio: http://www.mztools.com.

    • Marked as answer by pintope Saturday, August 15, 2015 7:19 AM
    • Unmarked as answer by pintope Friday, December 30, 2016 8:33 PM
    Friday, August 14, 2015 10:22 PM
  • Thank you for the information, Carlos. I will investigate the possibility you have mentioned.
    Saturday, August 15, 2015 7:18 AM
  • To show in main window caption only the application name and not the solution name (not "Solution1 - ApplicationName" but only "ApplicationName"), just edit in the main project, under Shell Customization folder, the file "ApplicationName.Application.pkgdef". Look for "ShowHierarchyRootInTitle":

    "ShowHierarchyRootInTitle"=dword:00000000


    That will be enough.
    • Marked as answer by pintope Friday, December 30, 2016 8:34 PM
    Friday, December 30, 2016 8:34 PM