Run console application minimized?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Derrick

    Run console application minimized?

    Is there anywhere I can set a CSharp console application to run minimized?
    Class attribute maybe? I looked thru the project properties and didn't see
    anything.

    Thanks in advance!

    Derrick


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Run console application minimized?

    Derrick,

    I don't know that you can do that, at least, that you can minmize the
    console window. Do you still want it to show up in the task bar or no?


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Derrick" <derrick1298@ex cite.com> wrote in message
    news:uc64KP$9EH A.4004@tk2msftn gp13.phx.gbl...[color=blue]
    > Is there anywhere I can set a CSharp console application to run minimized?
    > Class attribute maybe? I looked thru the project properties and didn't
    > see
    > anything.
    >
    > Thanks in advance!
    >
    > Derrick
    >
    >[/color]


    Comment

    • Anders Norås [MCAD]

      #3
      Re: Run console application minimized?

      Derrick wrote:[color=blue]
      > Is there anywhere I can set a CSharp console application to run minimized?
      > Class attribute maybe? I looked thru the project properties and didn't see
      > anything.[/color]
      There are no such properties or attributes for any application types.
      However, you can write an application which starts another application
      without a visible window. The following code snippet does this:

      System.Diagnost ics.ProcessStar tInfo process= new
      System.Diagnost ics.ProcessStar tInfo(@"MyAppli cation.exe");
      process.WindowS tyle=System.Dia gnostics.Proces sWindowStyle.Hi dden;
      process.UseShel lExecute=false;
      System.Diagnost ics.Process.Sta rt(process);

      Anders Norås

      Comment

      Working...