Marc,
This is an excerpt from MSDN.
TaskVisible Property Changes in Visual Basic .NET See Also App Object
Changes in Visual Basic .NET
In Visual Basic 6.0, the TaskVisible property of the App object determined
whether an application appeared in the Windows task list (Windows 9x) or in
the Task Manager Applications tab (Windows 2000). The property was commonly
used to prevent a user from closing an application that was intended to run
as a background task; in most cases it was used with applications that did
not display a user interface.
In Visual Basic .NET, there is no equivalent for the TaskVisible property;
however, you can create a Windows Service or a Console Application that will
not show up in the task list.
I tried the following and it seemed to work for me.
private void InitializeComponent()
{
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 266);
this.Name = "Form1";
this.ShowInTaskbar = false;
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
// Added the following lines.
this.WindowState = FormWindowState.Minimized;
this.Visible = false;
this.Hide();
}
HTH
--
Jason Newell
Software Engineer
The Charles Machine Works, Inc.
Marc said:
Hello,
I want to develop an app that is accessed via a notify icon. I don't
want to show a user interface. I hide the form programatically, but I still
see it when I push alt tab.