Abelard wrote:
It is a window and can be minimized manually by clicking the minimize box.
The question is how to programmaticall y minimize it.
The problem is that the way you do it programatically in a Windows
Application project is by setting the Me.WindowState to Minimized. But
the WindowState property is defined in the System.Windows. Forms class
and a Console Application window is not a member of the
Systems.Windows .Forms class. To make things even worse, there is no
Console.WindowS tate property.
Now, I happen to agree with you, a console window is essentially a
Command Prompt window that is running a specific piece of code. And you
can minimize a Command Prompt (and a Console App) window by clicking on
the minimize button, so there should be some way to do it
programmaticall y, but I haven't found it. Maybe there is an API call to
do it? (Since .NET I try to avoid API calls whenever possible.)
>
"Spam Catcher" wrote:
=?Utf-8?B?QWJlbGFyZA= =?= <Ab*****@discus sions.microsoft .comwrote in
news:F6******** *************** ***********@mic rosoft.com:
How do I programmaticall y minimize the console window in a VB .NET
console application?
I don't think you can - since it's not a window.