473,323 Members | 1,570 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,323 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 2869
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.