PC Review


Reply
Thread Tools Rate Thread

Can you hide a vb.net console window?

 
 
DaveF
Guest
Posts: n/a
 
      19th May 2004
Can you hide a vb.net console window?


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      19th May 2004
* "DaveF" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
DaveF
Guest
Posts: n/a
 
      19th May 2004
I want to hide it when it is running???

--



"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> * "DaveF" <(E-Mail Removed)> 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/>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      19th May 2004
* "DaveF" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
AlexS
Guest
Posts: n/a
 
      19th May 2004
Hi, DaveF

yes you can.

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

HTH
Alex

"DaveF" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Can you hide a vb.net console window?
>
>



 
Reply With Quote
 
Tom Shelton
Guest
Posts: n/a
 
      20th May 2004
In article <(E-Mail Removed)>, 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]
 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      20th May 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Can you hide a vb.net console window?
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      20th May 2004
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


 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      20th May 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      20th May 2004
>
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto hide a console app window and don't show it in the taskbar klwizzard Microsoft Dot NET Framework 5 13th Jun 2008 02:00 PM
Need to hide a console window. Steve MC Windows XP Basics 1 29th Mar 2008 07:15 AM
Subject: Need to hide a console window. Steve MC Windows XP Help 2 27th Mar 2008 04:19 PM
How to hide a console window? Terry Olsen Microsoft VB .NET 1 19th May 2005 10:14 PM
hide console window run by task scheduler Joe Wong Microsoft Windows 2000 CMD Promt 5 31st Mar 2005 06:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:54 PM.