Hide a Console Appliction

E

Emil Rijnbeek

Hello,

I have here a console appliction made in Visual studio.
It's a little server that waits for incomming data from a port and IP.
The only problem is that if my computer(that i still want to use for work)
runs the program i have all the time a black console window.
Is there a way to hide the console window and get it away or hide from my
taskbar.

Thx, Emil
 
S

Scott M.

Instead of writing this as a Console app, make it a Windows Service Project.

-Scott
 
M

Miro

If you are at this point and you want a 'consol window'.

Perhasp make a windows form and set its opacity to 100% and make it not show
in the taskbar.
Add a notify icon on it so it runs in the bottom right ( near the clock ).
A double click on that icon, set the opacity to 0

(I am not sure if you are trying to display some "processing scrollbars" or
if this really is a full service in which case take a look at Scott M.'s
reply)

Cheers'

Miro
 
C

Chris Dunaway

Hello,

I have here a console appliction made in Visual studio.
It's a little server that waits for incomming data from a port and IP.
The only problem is that if my computer(that i still want to use for work)
runs the program i have all the time a black console window.
Is there a way to hide the console window and get it away or hide from my
taskbar.

Thx, Emil

If you don't want the console, why make a console application?

Just make a standard Windows application with no forms and just
execute your code from a Sub Main.

If you need to use the Console.WriteLine method, then you will have to
either attach a console as Michael suggested, or use a console
application and then take steps to minimise the console.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top