472,352 Members | 1,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 2455

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...
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...
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...
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...
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...
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...
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...
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...
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 ;...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

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.