Re: Modal Form Causes Task Switcher Icon to Disappear



On 12 Apr 2006 12:04:32 -0700, handshaper@xxxxxxxxx wrote:

Hi all,

Thanks for your replies. I'm going to throw away the etiquette on
quoting questions... and answer them en masse. My apologies for doing
this. :)

1) The application was developed by a team of developers who ALL have
left (for greener pastures).

2) I created a three form set-up. The application had a MDI Form with
one child form (to mimick the actual application which makes extensive
use of a MDI Form. I avoid MDI Forms...but I got to go with the cards
that have been dealt.). The Child Form has a command button that opens
up Form2 (which is not a child MDI form) in vbModal mode.

I attached an icon to the MDI Form from one of the cursors in the
c:\Winxxx\cursors directory. Built an executable.

Loaded up the executable. Did an ALT+TAB. Lo and behold! The icon
for that app I just created -- baring itself in its full glory on the
ALT+TAB bar. I then clicked on the command button on the child form to
load up the modal Form2.

Guess what? The icon from ALT+TAB did a proverbial vanishing rabbit
from the magician's hat. It's gone. Only after I closed the modal
form did the rabbit decide to come back. The ShowInTaskbar property
for all forms (except MDI) was set to True.

This is an issue that I need to dig some more on. That reminder dialog
pop-up comes up whenever and when it does, the app is "lost."

Gawd, using VB5 on Win95
I'm getting system crashes every time an MDI child becomes visible
- works fine in the IDE - but crashes when compiled
- works as an EXE on XP, but on two Win95 machines - GPF

There is something funny about MDI Forms ...

I'm going to suggest a cludge
- show the Form modeless, its owner can be the main Form

Something like this (air code)

Private Declare Function WaitMessage _
Lib "user32" () As Long

Private Sub Command1_Click()
Form2.Show vbModeless, MDIParent
MDIParent.Enabled = False

While Form2.Visible = True
WaitMessage
DoEvents
Wend

MDIParent.Enabled = True

End Sub


.



Relevant Pages

  • Re: How can I disable MDI child menu
    ... is in the child form in the old ... Private Sub mnuPopupName_Click ... Then for forms that want to use popup menues from the MDI form you ...
    (microsoft.public.vb.general.discussion)
  • Re: notify MDI parent when a child form is about to close...
    ... introduce subclassing for a trivial matter such as this? ... able to trap when the child form is created... ... :> In the MDI Form, write your validation in a Boolean function called ...
    (microsoft.public.vb.general.discussion)
  • RE: Arranging Child Forms
    ... This will place the form in the top left corner of the MDI form. ... > one child form at a time, moving from form to form as required. ... > is that the MDI form is arranging them cascade and so each time I move to a ... I would like to display each child form so ...
    (microsoft.public.vb.general.discussion)
  • Re: How can I disable MDI child menu
    ... is in the child form in the old ... Private Sub mnuPopupName_Click ... Then for forms that want to use popup menues from the MDI form you ...
    (microsoft.public.vb.general.discussion)
  • Re: Modal Form Causes Task Switcher Icon to Disappear
    ... use of a MDI Form. ... The Child Form has a command button that opens ... I attached an icon to the MDI Form from one of the cursors in the ... The icon from ALT+TAB did a proverbial vanishing rabbit ...
    (comp.lang.basic.visual.misc)