Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Minimize VS Main window on non-debug launch

Minimize VS Main window on non-debug launch

Scheduled Pinned Locked Moved Visual Studio
visual-studiodebuggingquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MacSpudster
    wrote on last edited by
    #1

    Is there a way to set VS to aut-minimize itself when non-debug launching an exe? Thx

    D B L M 4 Replies Last reply
    0
    • M MacSpudster

      Is there a way to set VS to aut-minimize itself when non-debug launching an exe? Thx

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Not that I've found.

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      1 Reply Last reply
      0
      • M MacSpudster

        Is there a way to set VS to aut-minimize itself when non-debug launching an exe? Thx

        B Offline
        B Offline
        Bernhard Hiller
        wrote on last edited by
        #3

        I guess you want a setting which causes that for any project: here, I do not know a solution. But when it comes to a specific project, I guess there is a way. Look at the Properties page of the project, select Debugging. Typically, the "start action" is "start project". You could change that to "start external program" and point it to a program which minimizes VS and then starts the project. Since settings can be different depending on the selected configuration, that could be possible. (Note: I do not know the "correct" english names of the menus/tabpages as I have to use German localized VS, and tried to translate the items back from German to English)

        1 Reply Last reply
        0
        • M MacSpudster

          Is there a way to set VS to aut-minimize itself when non-debug launching an exe? Thx

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Why would you want to? Whether you run the debug or non-debug version, it is still useful to have VS visible to see any messages that may show up. If you want to run the non-debug version totally stand-alone then don't launch it from Visual Studio.

          M 1 Reply Last reply
          0
          • L Lost User

            Why would you want to? Whether you run the debug or non-debug version, it is still useful to have VS visible to see any messages that may show up. If you want to run the non-debug version totally stand-alone then don't launch it from Visual Studio.

            M Offline
            M Offline
            MacSpudster
            wrote on last edited by
            #5

            See my self-answer (in a moment or so)...

            1 Reply Last reply
            0
            • M MacSpudster

              Is there a way to set VS to aut-minimize itself when non-debug launching an exe? Thx

              M Offline
              M Offline
              MacSpudster
              wrote on last edited by
              #6

              Someone asked why I would want to do this. I have both IT and non-IT staff come to my desk to do informal reviews, of which the .exe is launched from VS. We review, jump back into VS to make changes, then relaunch. Having the VS window auto-minimize speeds the process along (yeah, first-world problem...). I have derived what I am confident is a simple, workable [yet, untested] solution. All my .exe's reference a core DLL which contains this enum and is used to perform specific functions given the focus.

              AppModeEnum
              {
              Debug,
              Test,
              Production
              }

              I'll add "Review" between Debug & Test (the order doesn't matter, they show up alphabetical anyway) and add a function InvokeReviewMode in the core DLL (can now be used in any .exe) to use WindowManager calls to walk through all open exe windows, minimize them (keeping track of their WindowState), except for the executing app's window. On close, all minimized windows at launch will be restored to their prev WindowState (if they still exist).

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups