473,322 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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.CreateNoWindow 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
Nov 22 '05 #1
2 2267
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" <cc****@nospam.yahoo.com> wrote in message
news:eg**************@tk2msftngp13.phx.gbl...
I have a .NET Windows application which launches another .NET console
application using
Start() method in the Process class. I set the StartInfo.CreateNoWindow 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

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

"Jason Han" <cc****@nospam.yahoo.com> wrote in message
news:eg**************@tk2msftngp13.phx.gbl...
I have a .NET Windows application which launches another .NET console
application using
Start() method in the Process class. I set the StartInfo.CreateNoWindow 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

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jason Han | last post by:
I have a .NET Windows application which launches another .NET console application using Start() method in the Process class. I set the StartInfo.CreateNoWindow to true. But on Windows98, the...
1
by: Fred Iannon | last post by:
All, I have developed an application that needs to run in one of two modes: (1) IF NO command line parms are provided I would like it to run as a Window form application (i.e. /target:winexe)...
1
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
3
by: Tom Jones | last post by:
I do not understand what is meant when someone states that a given method is "hidden" verses overriden. Would someone please provide a short example of both cases and why you might want to...
9
by: DaveF | last post by:
Can you hide a vb.net console window?
0
by: Bill | last post by:
I ahve developed a simple console app to run on Win98 machines. I call the app from a batch program to execute, then call another program. If I run the console app by itself, it works correctly on...
3
by: mayur_hirpara | last post by:
Hi, I am writing a VB.NET application. It is a Windows application at the moment. The application contains a button. the click event of button perform a long running task. It needs to be started...
3
by: deciacco | last post by:
I'm trying to write a label printing SDI app with a small preview on the main form itself. Every time I run the InvalidatePreview event on the preview control to redraw the preview I get the...
4
by: federico | last post by:
Hello, I am trying to setup a Visual Basic "Console" application for searching Outlook folders. To this end I am trying to implement a Handler for the Outlook.Application.AdvancedSearchComplete...
0
by: Stephen Thomas | last post by:
Hi there I wonder if any one has encountered this problem or can suggest what is wrong. I am trying the a procedure from the msn site but get the following message: Error 1 The type or...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.