Sign in to follow this  
ThunderSoul

Icon in ALT-TAB taskbar

Recommended Posts

When I run an application I coded, and you use the ALT + TAB keys, you see the icon of that application in the mini taskbar in windows. How do I disable the icon of the application to show up in that mini taskbar? I'm using C#... Thank you!

Share this post


Link to post
Share on other sites
Do you mean the system tray, down next to the clock?

I don't know for C# but in VB2005 nothing appears down there unless you create a notification icon within your project. If you're wanting to hide the program from the taskbar altogether then there should be a property you can set within your WinForms application.

Share this post


Link to post
Share on other sites
Quote:
Original post by ukdeveloper
Do you mean the system tray, down next to the clock?


No, I mean when you push the ATL + TAB buttons, you see the icon of my applications in that window that pops up that shows you the different icons of all the applications you have opened. I do not want the icon of my applications to show on that window. That is all.

Quote:
If you're wanting to hide the program from the taskbar altogether then there should be a property you can set within your WinForms application.


Unfortunately, there is no thing that prevents what I am looking for in the properties tab, or I just can't see it.

Thank you,
Please help...

Share this post


Link to post
Share on other sites
Any window which has a button on the taskbar will have an entry in Alt-Tab. This is not something that you have any control over.

In order to ensure that your window does not have a taskbar button (and therefore an entry in Alt-Tab) you can specify the WS_EX_TOOLWINDOW extended style. In C# there is probably an option along the lines of Tool Window which will set this for you.

Share this post


Link to post
Share on other sites
Quote:
Original post by Colin Jeanne
Any window which has a button on the taskbar will have an entry in Alt-Tab. This is not something that you have any control over.


Partially correct, any window which is created as a non-modal dialog will have an alt-tab entry, only windows which have been set to have one will have a taskbar button.

Share this post


Link to post
Share on other sites
Even modal dialogs can have an Alt-Tab entry.

The full criteria is something along the lines of

The window has the WS_EX_APPWINDOW style or (GetParent() == NULL and WS_EX_TOOLWINDOW is not specified).

The reason that it cannot depend on modality is that there isnt a way to tell if a window is modal. Plus, the idea of the taskbar buttons and the Alt-Tab entries is to switch between an application's main windows (modal or not).

Share this post


Link to post
Share on other sites
Quote:
Original post by Colin Jeanne
In order to ensure that your window does not have a taskbar button (and therefore an entry in Alt-Tab) you can specify the WS_EX_TOOLWINDOW extended style. In C# there is probably an option along the lines of Tool Window which will set this for you.

You can achieve the effect by setting the windows FormBorderstyle property to FormBorderstyle.FixedToolWindow (not resizeable) or to FormBorderstyle.SizableToolWindow (resizeable).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this