473,395 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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

Nov 22 '05 #1
4 1527
Bob wrote:
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/cc...sting?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
Nov 22 '05 #2
Bob wrote:
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/cc...sting?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
Nov 22 '05 #3
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
Nov 22 '05 #4
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
Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bob | last post by:
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...
4
by: Bob | last post by:
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...
0
by: Bob | last post by:
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...
8
by: Dan Aldean | last post by:
Hi, 2 web pages, One of them has properties that I need to read in a second form: First Form public class FirstForm : System.Web.UI.Page { private void submitButton_Click(......)
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.