Show app icon in ALT+TAB task switcher when ShowIcon = False

P

peter_m

Hi

I've developed a VB.NET toolbar based app using VS2005, ie; the main
Form is a borderless toolbar with a series of buttons on it which is
Always On Top.

ShowInTaskBar = False and ShowIcon = True. If I press the ALT+TAB key
comination the application is represented but with the default Visual
Studio icon. I want the application icon to be displayed. If I make
ShowInTaskBar = True the application is represented in the task
switcher with its icon - but then it's on the taskbar (which I don't
want).

Does anyone know of a way to have the application icon correctly
displayed in the task switcher WITHOUT having to set ShowInTaskBar =
True?

Peter,
 
P

peter_m

Hi

I've developed a VB.NET toolbar based app using VS2005, ie; the main
Form is a borderless toolbar with a series of buttons on it which is
Always On Top.

ShowInTaskBar = False and ShowIcon = True.  If I press the ALT+TAB key
comination the application is represented but with the default Visual
Studio icon.  I want the application icon to be displayed.  If I make
ShowInTaskBar = True the application is represented in the task
switcher with its icon - but then it's on the taskbar (which I don't
want).

Does anyone know of a way to have the application icon correctly
displayed in the task switcher WITHOUT having to set ShowInTaskBar =
True?

Peter,

Sorry - the title of this post should have been "Show app icon in ALT
+TAB task switcher when ShowInTaskBar = False"!
 
O

(O)enone

ShowInTaskBar = False and ShowIcon = True. If I press the ALT+TAB key
comination the application is represented but with the default Visual
Studio icon. I want the application icon to be displayed.

Have you set the Icon property for the form itself, as well as for the
application?

I created a test application with a form whose properties were set as
follows:

Icon: (an icon of my choosing)
ShowIcon: True
ShowInTaskBar: False

When I launch the app, the window appears with its icon, and nothing is
displayed in the taskbar, as expected. When I press Alt-Tab, my window
is included within the application list with the icon I selected for my
form.
 
P

peter_m

Have you set the Icon property for the form itself, as well as for the
application?

I created a test application with a form whose properties were set as
follows:

Icon: (an icon of my choosing)
ShowIcon: True
ShowInTaskBar: False

When I launch the app, the window appears with its icon, and nothing is
displayed in the taskbar, as expected. When I press Alt-Tab, my window
is included within the application list with the icon I selected for my
form.

Thanks for your tests. When I have do a similar thing on a small test
project I can get the application icon to appear in the Task List to.
In fact I can't seem to do anything in my test project that prevents
the application icon from being displayed in the Task List!

However, for some reason I can't make the application icon appear in
the Task List for my main project. I'll list and compare the Form
properties from my test and main projects and see if I can find the
difference. Clearly, something I'm doing in code or in the Form
properties is preventing the icon from being displayed in the Task
List. I'll juyst have to nut it out. :)

Thanks for your help.

Peter,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top