By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,141 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

Can you hide a vb.net console window?

P: n/a
Can you hide a vb.net console window?
Nov 20 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
* "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

P: n/a
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

P: n/a
* "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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
>
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.