PC Review


Reply
Thread Tools Rate Thread

How do I hide a program from ALT-TAB.

 
 
=?Utf-8?B?TWFyYw==?=
Guest
Posts: n/a
 
      26th Mar 2004
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.

Is there a setting that will allow me to hide my app from alt tab?
 
Reply With Quote
 
 
 
 
Jason Newell
Guest
Posts: n/a
 
      26th Mar 2004
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" <(E-Mail Removed)> wrote in message
news:B3AF0C64-A41C-4922-B6F1-(E-Mail Removed)...
> 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.
>
> Is there a setting that will allow me to hide my app from alt tab?



 
Reply With Quote
 
Stoitcho Goutsev \(100\) [C# MVP]
Guest
Posts: n/a
 
      26th Mar 2004
Hi Mark,

Set Form's FormBorderStyle to either FormBorderStyle.SizableToolWindow or
FormBorderStyle.FixedToolWindow

--
HTH
B\rgds
100 [C# MVP]

"Marc" <(E-Mail Removed)> wrote in message
news:B3AF0C64-A41C-4922-B6F1-(E-Mail Removed)...
> 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.
>
> Is there a setting that will allow me to hide my app from alt tab?



 
Reply With Quote
 
pcavit@gmail.com
Guest
Posts: n/a
 
      24th Mar 2005
If you do that, the form minimizes to the bottom-left of the screen and
the titlebar remains there, despite any settings you may have
otherwise.

Any other ideas?
Stoitcho Goutsev (100) [C# MVP] wrote:
> Hi Mark,
>
> Set Form's FormBorderStyle to either

FormBorderStyle.SizableToolWindow or
> FormBorderStyle.FixedToolWindow
>
> --
> HTH
> B\rgds
> 100 [C# MVP]
>
> "Marc" <(E-Mail Removed)> wrote in message
> news:B3AF0C64-A41C-4922-B6F1-(E-Mail Removed)...
> > 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.
> >
> > Is there a setting that will allow me to hide my app from alt tab?


 
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
this.Hide closes the whole program Martin M Microsoft Dot NET Compact Framework 0 10th Apr 2010 05:15 PM
How to hide a program Gaia+ Windows XP General 4 7th Dec 2004 07:03 PM
How to hide a program? That guy Microsoft Windows 2000 2 16th Jul 2004 12:18 PM
Hide the start and program bar =?Utf-8?B?THVjYUJhdHRpc3Rpbmk=?= Microsoft Windows 2000 Terminal Server Applications 1 31st May 2004 09:16 PM
How to Hide a Program that is running? =?Utf-8?B?am9obg==?= Windows XP Basics 1 6th Mar 2004 12:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:04 PM.