473,398 Members | 2,380 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,398 software developers and data experts.

suppress console window

Hi folks,
How do I suppress the console window in a console app? If I double-click the
app from explorer, I'd like the window not to appear.
Thanks,
Eric
Jul 21 '05 #1
4 2872
One way to achieve what you want is to change the application into a Windows
Forms application and remove all the forms and create a class with a static
void Main() method in it.

"Eric Nelson" wrote:
Hi folks,
How do I suppress the console window in a console app? If I double-click the
app from explorer, I'd like the window not to appear.
Thanks,
Eric

Jul 21 '05 #2
Clever!
That makes it a Windows NonForms application then, doesn't it...

E ;-)

"Jorge Matos" wrote:
One way to achieve what you want is to change the application into a Windows
Forms application and remove all the forms and create a class with a static
void Main() method in it.

"Eric Nelson" wrote:
Hi folks,
How do I suppress the console window in a console app? If I double-click the
app from explorer, I'd like the window not to appear.
Thanks,
Eric

Jul 21 '05 #3
Funny!

"Eric Nelson" wrote:
Clever!
That makes it a Windows NonForms application then, doesn't it...

E ;-)


Jul 21 '05 #4
I already had a console app written and was about to create a new windows app
and do what you said. But, just for kicks, I decided to change the project's
Output Type property from Console Application to Windows Application just to
see what it would do. IT WORKED.

The property is in the project properties dialog, Common
Properties|General|Output Type. Setting it to Windows Application eliminated
my console window.

Thanks.

"Jorge Matos" wrote:
One way to achieve what you want is to change the application into a Windows
Forms application and remove all the forms and create a class with a static
void Main() method in it.

"Eric Nelson" wrote:
Hi folks,
How do I suppress the console window in a console app? If I double-click the
app from explorer, I'd like the window not to appear.
Thanks,
Eric

Jul 21 '05 #5

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

Similar topics

4
by: Eric Nelson | last post by:
Hi folks, How do I suppress the console window in a console app? If I double-click the app from explorer, I'd like the window not to appear. Thanks, Eric
4
by: nick | last post by:
Is it possible to disable/suppress alert popups in javascript? I need to write a function that will loop through a form's inputs and "manually" fire their onchange events (if found). Some of those...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
When I press the Enter key in a Textbox I get a beep sound. But when I press the Enter key in a combobox, I don't get the beep sound. Is there a way to suppress the beep? How to do this? ...
10
by: Stephany Young | last post by:
When one uses the System.Diagnostics.Process.Start method to launch a common or garden Console application, one can set the WindowStyle property of the StartInfo object to ProcessWindowStyle.Hidden...
3
by: Tracey | last post by:
How I can have the cursor remain at the end of the 2nd Console.WriteLine - (without a <carriage-return>/<line-feed>) Console.WriteLine("Hello World") Console.WriteLine("Press <enterto continue: ")...
3
by: Jon Davis | last post by:
Is there an app.config setting I can add or a System.Diagnostic.Process property I can tweak to cause someone else's CLR 2.0 console app to not show a base CLR dialog box offering to debug the app...
3
by: Chris Shenton | last post by:
I am setting up handlers to log DEBUG and above to a rotating file and ERROR and above to console. But if any of my code calls a logger (e.g., logging.error("foo")) before I setup my handlers, the...
2
by: downtownjelly | last post by:
i have a program in Bloodshed DevC++ and, when i use system("start c://program"); it works, it just makes an ugly console window appear for 1-3 seconds is there a way to hide or "suppress" that
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: 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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.