473,378 Members | 1,413 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,378 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 15 '05 #1
4 1762
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 15 '05 #2
Hi,

Try setting,

StartInfo.WindowStyle = ProcessWindowStyle.Hidden

this should do the trick...

Regards,
Madhu

MVP | MCSD.NET
-----Original Message-----
I have a .NET Windows application which launches another .NET consoleapplication using
Start() method in the Process class. I set the StartInfo.CreateNoWindow totrue. But
on Windows98, the console still shows up (on XP and 2000, no window showsup).
Could anyone tell me how to hide the console window?

Thanks in advance for the help.

Jason
.

Nov 15 '05 #3
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 15 '05 #4
Thanks you for your response. I tried that. It didn't work.
"Madhu[MVP]" <an*******@discussions.microsoft.com> wrote in message
news:20****************************@phx.gbl...
Hi,

Try setting,

StartInfo.WindowStyle = ProcessWindowStyle.Hidden

this should do the trick...

Regards,
Madhu

MVP | MCSD.NET
-----Original Message-----
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 15 '05 #5

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
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.