For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > July 2006 > Re: Old problem, still no solution? (modal form losing focus when parent form is mini









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Old problem, still no solution? (modal form losing focus when parent form is mini
Jan Hyde

2006-07-03, 3:55 am

"Marek" <uhel@gmx.de>'s wild thoughts were released on 30
Jun 2006 08:37:34 -0700 bearing the following fruit:

>This is a copy of old problem, however, even a year after I couldn't
>find a solution for this simple issue:
>(http://www.tech-archive.net/Archive...04-08/2102.html)
>
>Hi everyone,
>
>
>I have a problem with modal forms that's very easy to reproduce, and
>practically locks up the application:


Show your code.

Are you doing something like this

f.Show vbModal, Form1

If so change it to

f.Show vbModal, Form1

J

>
>When closing Form1 I display a modal from (Form2), more or less to
>request
>the user if he's sure, etc. That works fine if Form1 is in normal
>window
>state and visible.
>If I minimize Form1 in the windows Taskbar before closing it using the
>system menu, Form2 appears, but is grayed and cannot receive mouse or
>keyboard input. Because Form2 is displayed and modal, I cannot do
>anything
>else with the application. As far as the user is concerned, it's dead
>and
>frozen.
>
>
>Form2 does not receive a Deactivate or LostFocus event, where I could
>possible "repair" things.
>
>Cheers, Marek



Jan Hyde (VB MVP)

--
Toothache: The pain that drives you to extraction. (Goeff Tibballs)

Larry Serflaten

2006-07-03, 3:55 am


"Jan Hyde" <StellaDrinker@REMOVE.ME.uboot.com> wrote


> Are you doing something like this
>
> f.Show vbModal, Form1
>
> If so change it to
>
> f.Show vbModal, Form1
>


It must be time to get new glasses, I just can't see the difference
between the two!

<g>
LFS


Jan Hyde

2006-07-03, 6:56 pm

"Larry Serflaten" <serflaten@usinternet.com>'s wild thoughts
were released on Mon, 3 Jul 2006 03:31:48 -0500 bearing the
following fruit:

>
>"Jan Hyde" <StellaDrinker@REMOVE.ME.uboot.com> wrote
>
>
>
>It must be time to get new glasses, I just can't see the difference
>between the two!
>
><g>
>LFS


The Curse of Cut & Paste strikes again.



To the OP,

I meant change it to

f.Show vbModal

<darn cut and paste..mumble..>


Jan Hyde (VB MVP)

--
A friend of mine just had her 11th baby. Everyone says she's overbearing
(Megan Waves)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com