How to hide the DOS console of a program started by a dotnet application on Win98

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

    How to hide the DOS console of a program started by a dotnet application on Win98

    I have a .NET Windows application which launches another .NET console
    application using
    Start() method in the Process class. I set the StartInfo.Creat eNoWindow to
    true. But
    on Windows98, the console still shows up (on XP and 2000, no window shows
    up).
    Could anyone tell me how to hide the console window?

    Thanks in advance for the help.

    Jason


  • Gary van der Merwe

    #2
    Re: How to hide the DOS console of a program started by a dotnet application on Win98

    HI

    Go into the properties of your project, an check that the "Output type" is
    set to "Windows Application" and to "Console Application".

    Gary


    "Jason Han" <ccjhan@nospam. yahoo.com> wrote in message
    news:egZ9ddNqDH A.3732@tk2msftn gp13.phx.gbl...[color=blue]
    > I have a .NET Windows application which launches another .NET console
    > application using
    > Start() method in the Process class. I set the StartInfo.Creat eNoWindow[/color]
    to[color=blue]
    > true. But
    > on Windows98, the console still shows up (on XP and 2000, no window shows
    > up).
    > Could anyone tell me how to hide the console window?
    >
    > Thanks in advance for the help.
    >
    > Jason
    >
    >[/color]


    Comment

    • Madhu[MVP]

      #3
      How to hide the DOS console of a program started by a dotnet application on Win98

      Hi,

      Try setting,

      StartInfo.Windo wStyle = ProcessWindowSt yle.Hidden

      this should do the trick...

      Regards,
      Madhu

      MVP | MCSD.NET
      [color=blue]
      >-----Original Message-----
      >I have a .NET Windows application which launches[/color]
      another .NET console[color=blue]
      >application using
      >Start() method in the Process class. I set the[/color]
      StartInfo.Creat eNoWindow to[color=blue]
      >true. But
      >on Windows98, the console still shows up (on XP and[/color]
      2000, no window shows[color=blue]
      >up).
      >Could anyone tell me how to hide the console window?
      >
      >Thanks in advance for the help.
      >
      >Jason
      >
      >
      >.
      >[/color]

      Comment

      • Michael Giagnocavo [MVP]

        #4
        Re: How to hide the DOS console of a program started by a dotnet application on Win98

        Do you have control of the other application (source?). If so, you could
        call "FreeConsol e". However, to achieve this just with Process, I believe
        you need to make sure you redirect StandardInput, Output, and Error.
        -mike
        MVP

        "Jason Han" <ccjhan@nospam. yahoo.com> wrote in message
        news:egZ9ddNqDH A.3732@tk2msftn gp13.phx.gbl...[color=blue]
        > I have a .NET Windows application which launches another .NET console
        > application using
        > Start() method in the Process class. I set the StartInfo.Creat eNoWindow[/color]
        to[color=blue]
        > true. But
        > on Windows98, the console still shows up (on XP and 2000, no window shows
        > up).
        > Could anyone tell me how to hide the console window?
        >
        > Thanks in advance for the help.
        >
        > Jason
        >
        >[/color]


        Comment

        • Jason Han

          #5
          Re: How to hide the DOS console of a program started by a dotnet application on Win98

          Thanks you for your response. I tried that. It didn't work.
          "Madhu[MVP]" <anonymous@disc ussions.microso ft.com> wrote in message
          news:204601c3a9 0b$85b98c10$a60 1280a@phx.gbl.. .[color=blue]
          > Hi,
          >
          > Try setting,
          >
          > StartInfo.Windo wStyle = ProcessWindowSt yle.Hidden
          >
          > this should do the trick...
          >
          > Regards,
          > Madhu
          >
          > MVP | MCSD.NET
          >[color=green]
          > >-----Original Message-----
          > >I have a .NET Windows application which launches[/color]
          > another .NET console[color=green]
          > >application using
          > >Start() method in the Process class. I set the[/color]
          > StartInfo.Creat eNoWindow to[color=green]
          > >true. But
          > >on Windows98, the console still shows up (on XP and[/color]
          > 2000, no window shows[color=green]
          > >up).
          > >Could anyone tell me how to hide the console window?
          > >
          > >Thanks in advance for the help.
          > >
          > >Jason
          > >
          > >
          > >.
          > >[/color][/color]


          Comment

          Working...