Can you hide a vb.net console window?

  • Thread starter Thread starter DaveF
  • Start date Start date
* "DaveF said:
I want to hide it when it is running???

I doubt that this is supported because you can start a console
application from an existing console window and then hiding the
application would hide the whole console...
 
Hi, DaveF

yes you can.

Use GetConsoleWindow() and ShowWindow Win32 API - see platform SDK - Console
functions.

HTH
Alex
 
Hi, DaveF

yes you can.

Use GetConsoleWindow() and ShowWindow Win32 API - see platform SDK - Console
functions.

GetConsoleWindow only works on 2K and up... The old way to do this was
to use SetConsoleTitle to a unique value (a GUID string comes to mind)
and then use FindWindow to locate the window.
 
Dave,
Rather the creating a console application, consider creating a Windows
Service or a Windows Application.

Then the question of hiding the "console window" is moot.

Hope this helps
Jay
 
Hi Jay,

Are you making it difficult for us.
Then the question of hiding the "console window" is moot.

I thought Jay starts with the same words of CJ, and than we (not american
speakers) have to translate free and thought he means mud, but I never saw
you use those words.

I was looking this up in a dictionary, however the translations do not fit
in my idea, what is it?

:-)

Cor
 
Cor,
I was using this definition:

Moot (adj) 1: open to question 2: having no practical significance

If you change the project type to a type that does not show a console
window, then needing to know how to hide (the none existent window) does not
matter (no practical significance).

Hope this helps
Jay
 
Back
Top