473,473 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

modal dialogs not modal

Hi,

I was wondering if anyone has come accross this issue? And if they have
any solutions

I have that can create new copies of itself
Form1 as = new form1();
af.show();

This form can also bring up a modal dialog (MessageBox)

My problem is that if I bring up the modal dialog from the initial
form. All the forms are inaccessible, the dialog is modal afterall,
which is the desired action

However if I bring the messagebox up from any of the other forms
created from the initial, then all the "child" forms are inaccessible,
but I do have access to the top level form.

It gets wierder, children of the child forms will have the same effect
on all but the initial window

Diagramatically:
X <- initial window
/ \
Y Y
/ \
Z Z

If I bring up a modal dialog from X, I cannot access any forms, X, Y or
Z.

If I bring up a modal dialog from Y, I cannot access Y or Z, but I can
access X.

If I bring up a modal dialog from Z, I cannot access Y or Z, but I can
access X

Is there anyway to make the "child" modal dialogs make the whole
application modal and not just all the child forms?

Thanks

CJC

Nov 17 '05 #1
2 2541

Are you running any multi-threaded operations that may kick off the
modal dialog (either directly or through an event without checking
InvokeRequired)? I've seen the behavior you describe resulting from
multi-threaded operations calling message box and the solution in that
case was to call invoke on the control (which should always be done
anyways).

HTH,

Sam
On 5 May 2005 05:19:03 -0700, ca******@gmail.com wrote:
Hi,

I was wondering if anyone has come accross this issue? And if they have
any solutions

I have that can create new copies of itself
Form1 as = new form1();
af.show();

This form can also bring up a modal dialog (MessageBox)

My problem is that if I bring up the modal dialog from the initial
form. All the forms are inaccessible, the dialog is modal afterall,
which is the desired action

However if I bring the messagebox up from any of the other forms
created from the initial, then all the "child" forms are inaccessible,
but I do have access to the top level form.

It gets wierder, children of the child forms will have the same effect
on all but the initial window

Diagramatically:
X <- initial window
/ \
Y Y
/ \
Z Z

If I bring up a modal dialog from X, I cannot access any forms, X, Y or
Z.

If I bring up a modal dialog from Y, I cannot access Y or Z, but I can
access X.

If I bring up a modal dialog from Z, I cannot access Y or Z, but I can
access X

Is there anyway to make the "child" modal dialogs make the whole
application modal and not just all the child forms?

Thanks

CJC


Nov 17 '05 #2
Nope, I've got this down the a simple form with 2 buttons, one to pop
up another instance of the form, and another to bring up the
MessageBox, and I am still getting this problem.

I was pointed to a suggestion that I should make the root window the
owner of the dialog, but haven`t tried this yet.

Even so, when I haven`t been doing that, and only setting the owner of
the dialog to be the form that it spawn from I am still getting the
case where dialogs from grandchildren forms are preventing access to
all grandchildren and children, but fail to prevent access to the root
window.

CJC (who will try that tomorrow just to see)

Nov 17 '05 #3

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

Similar topics

2
by: Bjoern Obermeyer | last post by:
Hi, I am writing an application with a JFrame as the main window and several dialogs to gain user input. The problem arises when another window (from a differnent apllication) hides my...
3
by: Rod | last post by:
I have an asp.net application where some of the interaction with the user is through modal dialog windows. This works very well except for the annoying fact that the dialog window always returns...
3
by: Andrew Baker | last post by:
OK this has me perplexed, puzzled and bamboozled! I have a remoting service which I displayed a message box in. I then wondered what would happen if a client made a call to the service while the...
2
by: Ricky K. Rasmussen | last post by:
Hi NG, We have a rather large ASP.NET application that uses popups to display various dialogs to the user. In our work we've come over a rather annoying "bug": If we open a modal dialog using...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
1
by: wendy | last post by:
I have got a problem while using the modal dialogs. In my code I need to open a modal dialog from the parent page and I need to enter some values in the dialog and save it. It takes the values...
2
by: sthrudel | last post by:
Hi! I'm working on a web application in Asp.net and what I would like to have is a cross borwser modal dialog which accepts user's input. I would like to catch what the user clicked on the...
23
by: Chukkalove | last post by:
Im sorry, I dont know the correct description for a hierarchy of parent and child forms. I have a main form that opens a child form modally. This child form in turn opens it's own child form...
7
by: proximus | last post by:
hello i need some modal dialog box to show when page is loaded any sugestion? not 'onclik' thanks -- www.proximus-os.hr ; www.e-stranica.com ; www.zlatovezi.com
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.