473,657 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Nov 22 '05 #1
2 2291
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******** ******@tk2msftn gp13.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.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

Nov 22 '05 #2
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" <cc****@nospam. yahoo.com> wrote in message
news:eg******** ******@tk2msftn gp13.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.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

Nov 22 '05 #3

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

Similar topics

2
404
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 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.
1
1637
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) with a Main form, etc. and with execution returing to the command line AS SOON AS the program STARTS (2) If a command line parm IS provided I would
1
5377
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 application (VB.NET) will start a process, redirect its stdout and capture that process' output, displaying it in a window. I've written a component for this, and a test application for the component. It allows me to specify a command to execute,...
3
5508
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 "hide" a parent method's implementation verses simply overriding it (ie take advantage of polymorphism)? Thanks, TJ
9
19428
by: DaveF | last post by:
Can you hide a vb.net console window?
0
884
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 all machines. But on some of the machines, when the batch is run, it does not seem to complete. No error messages are displayed. When the batch is called, there is another program that runs in the background, so my question is if Win98...
3
2233
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 by windows task scheduler to carry out some operation. When I am testing the application I want to differentiate if the "differentiate between a program launched manually and launched by a
3
8834
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 "Generating Previews" dialog box while the preview is being generated. I want to suppress this. I've been able to find this from another forum: "The 'Generating Previews' dialog is shown while calculating the layout for pages in OnPaint(). One of our...
4
5685
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 Event. The problem I have is that the application finishes and exits before the AdvanceSearch, so the Event Handler in never called. If I delay the end of the application, for example, by having message box right after the call to AdvancedSearch,...
0
2058
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 namespace name 'LiveSearch' does not exist in the namespace 'ConsoleSampleWebSearch' (are you missing an assembly reference?) C:\Documents and Settings\Compaq\Local Settings\Application Data\Temporary Projects\ConsoleSampleWebSearch\Program.cs 13 30...
0
8402
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8315
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8508
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6172
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1627
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.