473,785 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exclude app from displaying in the Alt-Tab window

I'm using the NotifyIcon component on a form within a Windows application
that will normally show no interface.
NotifyIcon does add an icon as required to the notification area of the Task
Bar. Unfortunately the window is showing up in the little window that is
displayed when user uses Alt-Tab to switch applications.

How do I make this application not show up in the Alt-Tab window?

Thanks.

Dale
Jul 21 '05 #1
3 2492
Set the form's ShowInTaskbar property to false, and set the
FormBorderStyle property to either FixedToolWindow or SizableToolWind ow.

Regards,
Joakim

Dale wrote:
I'm using the NotifyIcon component on a form within a Windows application
that will normally show no interface.
NotifyIcon does add an icon as required to the notification area of the Task
Bar. Unfortunately the window is showing up in the little window that is
displayed when user uses Alt-Tab to switch applications.

How do I make this application not show up in the Alt-Tab window?

Thanks.

Dale

Jul 21 '05 #2
Thanks for the info Joakim.

Your suggestion doesn't completely solve the problem, but comes pretty
close. Thank you for the help.

In case anyone else has this problem, I've included my documentation below.
Please let me know if you have a simple suggestion for getting rid of the
last case. Thanks.

/// In order to make the window invisible, you need to do a few things.
/// To prevent window from normally showing in Task bar or in the Alt-Tab
window used
/// to select the foreground application:
/// - set ShowInTaskbar property to false
/// - set FormBorderStyle property to either FixedToolWindow or
SizableToolWind ow
///
/// To prevent the window itself from being visible, setting WindowState to
minimized
/// does not work, due to the FormBorderStyle setting from above. You need
to:
/// - set StartPosition to Manual
/// - set Location to something off the screen, such as 2500,0
/// - set WindowState to Normal
///
/// You will still be able to see this window in the Alt-Tab window if:
/// - no window has focus (e.g. user has clicked on the task bar on a
NotifyIcon
/// therein)
/// - the NotifyIcon for this window was right-clicked
/// This seems to be standard Windows behaviour (or a consistent Windows
bug),
/// as right-clicking on any icon in the notification area of the task bar
temporarily
/// adds it to the Alt-Tab window. Left-clicking does not.
/// In my particular case, I was clicking on the NotifyIcon for this app in
the
/// task bar, and using the ContextMenu to launch a new form/window which
was used
/// to display a message. Immediately pressing Alt-Tab caused both the new
window
/// and the original "invisible" window to be listed. Clicking either the
new
/// window or any other application caused this "invisible" window to no
longer be
/// listed.
/// Getting the application that previously had focus and returning focus to
it
/// would likely resolve this.
Dale
"Joakim Karlsson" <jk*******@NOSP AMjkarlsson.com > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Set the form's ShowInTaskbar property to false, and set the
FormBorderStyle property to either FixedToolWindow or SizableToolWind ow.

Regards,
Joakim

Dale wrote:
I'm using the NotifyIcon component on a form within a Windows application that will normally show no interface.
NotifyIcon does add an icon as required to the notification area of the Task Bar. Unfortunately the window is showing up in the little window that is displayed when user uses Alt-Tab to switch applications.

How do I make this application not show up in the Alt-Tab window?

Thanks.

Dale

Jul 21 '05 #3
Thanks for the info Joakim.

Your suggestion doesn't completely solve the problem, but comes pretty
close. Thank you for the help.

In case anyone else has this problem, I've included my documentation below.
Please let me know if you have a simple suggestion for getting rid of the
last case. Thanks.

/// In order to make the window invisible, you need to do a few things.
/// To prevent window from normally showing in Task bar or in the Alt-Tab
window used
/// to select the foreground application:
/// - set ShowInTaskbar property to false
/// - set FormBorderStyle property to either FixedToolWindow or
SizableToolWind ow
///
/// To prevent the window itself from being visible, setting WindowState to
minimized
/// does not work, due to the FormBorderStyle setting from above. You need
to:
/// - set StartPosition to Manual
/// - set Location to something off the screen, such as 2500,0
/// - set WindowState to Normal
///
/// You will still be able to see this window in the Alt-Tab window if:
/// - no window has focus (e.g. user has clicked on the task bar on a
NotifyIcon
/// therein)
/// - the NotifyIcon for this window was right-clicked
/// This seems to be standard Windows behaviour (or a consistent Windows
bug),
/// as right-clicking on any icon in the notification area of the task bar
temporarily
/// adds it to the Alt-Tab window. Left-clicking does not.
/// In my particular case, I was clicking on the NotifyIcon for this app in
the
/// task bar, and using the ContextMenu to launch a new form/window which
was used
/// to display a message. Immediately pressing Alt-Tab caused both the new
window
/// and the original "invisible" window to be listed. Clicking either the
new
/// window or any other application caused this "invisible" window to no
longer be
/// listed.
/// Getting the application that previously had focus and returning focus to
it
/// would likely resolve this.
Dale
"Joakim Karlsson" <jk*******@NOSP AMjkarlsson.com > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Set the form's ShowInTaskbar property to false, and set the
FormBorderStyle property to either FixedToolWindow or SizableToolWind ow.

Regards,
Joakim

Dale wrote:
I'm using the NotifyIcon component on a form within a Windows application that will normally show no interface.
NotifyIcon does add an icon as required to the notification area of the Task Bar. Unfortunately the window is showing up in the little window that is displayed when user uses Alt-Tab to switch applications.

How do I make this application not show up in the Alt-Tab window?

Thanks.

Dale

Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2227
by: Kingdom | last post by:
I'm using this script to dynamicaly populate 2 dropdowns and dispaly the results. Choose a component type from the first drop down, lets say 'car' and the second box will list all the car 'manufacturers' and the display will then provide all the rest of the info from the other fields. I need to eliminate all the duplicates in the First Drop Down as it currently displays an entry for every record, many are identical, I might have over...
1
2470
by: Waguih Boctor | last post by:
Hi, I have a number of ASP pages where some JPGs and GIFs are displaying in the browser and some are not. I have included an excerpt from the HTML below. In this example, the gif file at the bottom of the example is displaying (I have others that don't), while the jpg file at the top isn't. Both files are in the same folder (visible bith physical in WE and virtual in CM) as the asp file itself. WHen not displaying, it displays instead...
14
2620
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file (that part's not here -- spotlighting the problem code): --------BEGIN CODE PAGE------------ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
33
4783
by: LRW | last post by:
http://gto.ie-studios.net/index.php When you view the above site in IE, if the 1st of the three product images is tall enough to push the cell down a couple of pixels, IE somehow doesn't show that happening. But if you look at it in Firefox you can see the small gap of white where the semi-circle image is broken. I've tried changing the background colors to gray in cells and tables
0
1727
by: Fronky | last post by:
Hope someone can help. I am still learning, so no laughing please. I am displaying records from a database using Response.Write(""); instead of the usual datagrid method. I am doing it this way to achieve the result I require. However. Since I have added a button to the screen, and have had to include the "object sender, System.EventArgs e", the Response.Write code has been appearing within the Documents_Table(null,null); tag on the...
2
3701
by: David Scemama | last post by:
Hi, I'm looking for a way to display semi graphic characters in a multi line text control or in a rich text control. I've tried with all the characters of the extended ASCII table (code page 437), they appear correctly except the semi graphic ones. Please help ... Thanks a lot
4
7157
by: MrL8Knight | last post by:
Hello, I am trying to build a simple php form based shopping cart using a cookie with arrays. I need to use 1 cookie because each order will have over 20 items. With that said, I realize I need to serialize the data to put the array into the cookie. That part of my code is working just fine and displaying fine. The problem I’m having is when I try to unserialize and display; the data does not appear. If I remove my unserialize command line (see...
1
1747
by: Sonia Scott | last post by:
I have done the following code, which seem to partially work. I got my HTML ALT (text) from the database shown, but for some reason cannot display the image. Below is my connection code: <% Dim SurveyID SurveyID = request("SurveyID") set dbConnection = Server.CreateObject("ADODB.Connection") fileType = "Driver={Microsoft Access Driver (*.mdb)};" fileLocation="DBQ=" & Server.MapPath("PPPCdb/PPPC_Database.mdb")
2
1617
ak1dnar
by: ak1dnar | last post by:
Hi, need a favor on this HTML element. I am using this tag for for my web Application to print some buttons along with some products. <a href="javascript:get_id(1001)"> <img width="21" height="22" border="0" alt="Add Inquries" src="images_store/b_iqn.jpg"/> </a> problem is the alternate message is displaying in IE but not in FF. i there any way to display this alt in FF, and what is the reason for Not displaying it in FF.
11
2429
by: dba | last post by:
Have been displaying data from database using html for some time but just recently trying to display data back to "form". Can't find answer. <form method="post" action="<?php echo $PHP_SELF;?>"> First Name:<input type="text" size="12" maxlength="12" name="Fname"><br > Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br /> Gender:<br /> Male:<input type="radio" value="Male" name="gender"><br /> Female:<input...
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10346
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10096
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8982
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.