detecting when a form's modality it superceded by another's

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

My application shows one MDI Parent modally. I'd like to be able to detect
when any other forms come up modally, which makes the MDI Parent and its
contents inaccessible, such as when a message box is shown. I need to make a
certain timered process wait while modal dialogues or forms are shown. Is
there a best way to do this?

TIA,
Bob
 
Bob said:
I'd like to be able to detect
when any other forms come up modally, which makes the MDI Parent and
its contents inaccessible, such as when a message box is shown.

You could use the WinForm.Deactivate and WinForm.Activate events for
these, but be warned that they will fire whenever the form is
deactivated/activated (including when another app gets focus).

--
Cheers,
David Clegg
dclegg_at_ebetonline_dot_com

Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 :-)

Quality Central. The best way to bug Borland about bugs.
http://qc.borland.com

"Facts are meaningless. You could use facts to prove anything that's
even
remotely true." - Homer Simpson
 
Hi Bob,

Your question is a complex question (not difficult I think.)

I can try to answer you however in the newsgroup

microsoft.public.dotnet.languages.vb

Is Armin Zingler again active, when I look at all your questions, than I
think they all reflects the parts where in that newsgroup he is for us the
specialist.

I would ask it there too.

I hope this helps?

Cor
 

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

Back
Top