473,396 Members | 1,768 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,396 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 10351
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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...
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...

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.