473,432 Members | 1,765 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,432 software developers and data experts.

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
Nov 16 '05 #1
2 10356
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]
- mv*@spam.guard.caspershouse.com

"Derrick" <de*********@excite.com> wrote in message
news:uc**************@tk2msftngp13.phx.gbl...
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

Nov 16 '05 #2
Derrick wrote:
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.

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.Diagnostics.ProcessStartInfo process= new
System.Diagnostics.ProcessStartInfo(@"MyApplicatio n.exe");
process.WindowStyle=System.Diagnostics.ProcessWind owStyle.Hidden;
process.UseShellExecute=false;
System.Diagnostics.Process.Start(process);

Anders Norås
http://dotnetjunkies.com/weblog/anoras/
Nov 16 '05 #3

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

Similar topics

3
by: Mike Oliszewski | last post by:
I am attempting to install the MSDE (SQL 2000) as a part of our application. This requires that you run the MSDE setup.exe program from a Console mode application, it just hangs forever part way...
1
by: Console guy | last post by:
How do I force a console application to be minimized upon launch? I have a C# application which starts a console application via the following syntax: System.Diagnostics.Process.Start("Console.exe")...
0
by: Maxwell | last post by:
Hello, I recently completed a MC++ (VS2003) DLL that wraps a non MFC C++ DLL and need to use it in a MC++ Console Application (no forms/guis of any kind just output to console). Trouble is...
8
by: Avi G | last post by:
Hi, i've created an application and i want it to be minimized to the sys tray, how i do it? if you can direct me step by step even with create a small application and put it in the sys tray ...
7
by: Abelard | last post by:
How do I programmatically minimize the console window in a VB .NET console application?
3
by: Marcel Saucier | last post by:
I have written a Console Application then created a shortcut to it on my desktop. I was able to minimize the DOS window when I click my shortcut so I dont see anymore the DOS window But, using...
2
by: Glenn Palomar | last post by:
Hi, Is there a way to run VB .Net Console application with hidden console window? I can run it minimized by creating a shortcut and set its properties to run minimized. Still it is not...
5
by: Dilip | last post by:
I have written a C# based console application. Due to some issues thats been causing me endless nightmares, I was wondering, is there a way to prevent right mousebutton clicks on my application...
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.