Re: Modal Form Causes Task Switcher Icon to Disappear




"bpsdg" <bpsdgnewsBRAKE@xxxxxxxxxx> schreef in bericht
news:4436a629$0$740$5fc3050@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"J French" <erewhon@xxxxxxxxxx> schreef in bericht
news:443617ca.175603052@xxxxxxxxxxxxxxxxxxxxxxx
On 6 Apr 2006 13:16:04 -0700, handshaper@xxxxxxxxx wrote:

Hello all,

I'm working with a legacy VB6 application that is run on both Win2k and
WinXP environments. I noticed that if the application gets a modal
form, the application icon on the Windows Alt-Tab Task Switcher goes
away.

It comes back if I close the modal form.

I tried to find information on Google Groups and elsewhere on how to
keep the icon present regardless.

That sounds odd, can you reproduce that behaviour with just two Forms?
- in a new App

Modal Forms don't display in the Taskbar, so maybe the legacy code,
deliberately removes the parent Form from the Taskbar
( .ShowInTaskbar=False or just make the parent Form Visible=False )

Does it happen in the App for all Modal Forms including MsgBox
- or just one of them

My guess is that this was 'designed in' by the original developer who
did not want two entries in the Taskbar, but then they made the Form
modal, and did not notice the side effect.


I don't think this was 'designed in'. Same thing happens in the apps I
make. I'd like to know a solution as well.

But Todd didn't say the app dissapeared from the taskbar. It dissapears
from the small icon window which is shown when you press alt-tab. And the
app cannot be activated by using alt-tab.

Regards, Bas Prins.

I started some experimenting. I may not have 'designed it in' on purpose,
but maybe by accident.

I open a modal form like this:

frmLopers.Show vbModal, Me

When I open it like this:

frmLopers.Show vbModal

The problem doesn't occur. I was unable however to duplicate this behaviour
with a simple 2 form project. That is, in a simple 2 form project I was
unable to create the problem.

But I do want to set the owner form, so that I can set StartUpPosition to
1 - CenterOwner.

Bas.


.



Relevant Pages

  • Re: Modal Form Causes Task Switcher Icon to Disappear
    ... I'm working with a legacy VB6 application that is run on both Win2k and ... Modal Forms don't display in the Taskbar, so maybe the legacy code, ... Does it happen in the App for all Modal Forms including MsgBox ... the small icon window which is shown when you press alt-tab. ...
    (comp.lang.basic.visual.misc)
  • Re: Modal Form Causes Task Switcher Icon to Disappear
    ... I'm working with a legacy VB6 application that is run on both Win2k and ... Modal Forms don't display in the Taskbar, so maybe the legacy code, ... deliberately removes the parent Form from the Taskbar ... Does it happen in the App for all Modal Forms including MsgBox ...
    (comp.lang.basic.visual.misc)
  • Re: Booting right into my Application at startup
    ... previous postings on this subject, many of which you had already ... Hiding the TaskBar: ... because I am loading my App from the HKLM/ ... Init registry key before the Explorer.exe gets executed. ...
    (microsoft.public.windowsce.embedded)
  • Re: hide taskbar
    ... I assume you have included all the dependencies of your app in to your image. ... I also assume you have properly set your app to be the shell. ... search for Custom shell in the XPe docs. ... > background, no taskbar and no programm running, with no error message. ...
    (microsoft.public.windowsxp.embedded)
  • Re: One very unhappy Linux user
    ... since the icons are very small. ... Click on the app in the dash and wait while it opens. ... Continue to alt-tab till I've selected the right app. ...
    (GNOME)