Re: Modal Form Causes Task Switcher Icon to Disappear
- From: "bpsdg" <bpsdgnewsBRAKE@xxxxxxxxxx>
- Date: Fri, 7 Apr 2006 21:35:34 +0200
"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.
.
- Follow-Ups:
- Re: Modal Form Causes Task Switcher Icon to Disappear
- From: J French
- Re: Modal Form Causes Task Switcher Icon to Disappear
- References:
- Modal Form Causes Task Switcher Icon to Disappear
- From: handshaper
- Re: Modal Form Causes Task Switcher Icon to Disappear
- From: J French
- Re: Modal Form Causes Task Switcher Icon to Disappear
- From: bpsdg
- Modal Form Causes Task Switcher Icon to Disappear
- Prev by Date: Using a 3rd-party DLL that is not thread-safe
- Next by Date: Re: Launching Browser with Post Parameters?
- Previous by thread: Re: Modal Form Causes Task Switcher Icon to Disappear
- Next by thread: Re: Modal Form Causes Task Switcher Icon to Disappear
- Index(es):
Relevant Pages
|