473,434 Members | 1,807 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,434 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 1530
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(......)
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.