468,539 Members | 1,856 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,539 developers. It's quick & easy.

Can you hide a vb.net console window?

Can you hide a vb.net console window?
Nov 20 '05 #1
9 18960
* "DaveF" <df*****@geodecisions.com> scripsit:
Can you hide a vb.net console window?


You can close it by exiting the application.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
I want to hide it when it is running???

--

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2h************@uni-berlin.de...
* "DaveF" <df*****@geodecisions.com> scripsit:
Can you hide a vb.net console window?


You can close it by exiting the application.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
* "DaveF" <df*****@geodecisions.com> scripsit:
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...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
Hi, DaveF

yes you can.

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

HTH
Alex

"DaveF" <df*****@geodecisions.com> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
Can you hide a vb.net console window?

Nov 20 '05 #5
In article <Of**************@tk2msftngp13.phx.gbl>, AlexS wrote:
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.

--
Tom Shelton [MVP]
Nov 20 '05 #6
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

"DaveF" <df*****@geodecisions.com> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
Can you hide a vb.net console window?

Nov 20 '05 #7
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
Nov 20 '05 #8
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

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
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

Nov 20 '05 #9
>
Moot (adj) 1: open to question 2: having no practical significance

The second one I could not find and the first one was moot in my opinion.

Thanks.

Cor
Nov 20 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by adrien | last post: by
3 posts views Thread by dricks dr | last post: by
1 post views Thread by Terry Olsen | last post: by
reply views Thread by Helge Lenuweit | last post: by
2 posts views Thread by xfadeuk | last post: by
1 post views Thread by Kevin McKinley | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.