Multiple modal dialogs simultaneously on a single form

M

Mohit

Hi all,
I am working on a windows based client server application with
multiple forms. All forms are having custom title bars with no default
bars. There is one main form. Some forms are opened up as modal while
others are opened up as modeless on this main form.
Whenever some error occurs in client server communication we show it
in modal message box.

Now I ran into a case: a modal form is opened up on the main form.
And some error occurs in the previous server transaction which is now
displayed and opened up as a message box on the main form. But this
error message box opens up behind the already exisiting modal form.
Now user is unable to interact with this and any other opened form of
the application. This is occurring because error message box is having
the focus and it is not visible to user as it is behind the other
modal window.

And as all forms are having custom title bar so user gets no idea
that why application is not responding. But if default title bar would
be there then they gets highlighted by default. But in custom title
bar they don't get highlighted.

How can I highlight(blink) the error message box which is behind the
other modal dialog or how can I open it up on the opened modal
window??

Thanks!!
 
I

Ignacio Machin ( .NET/ C# MVP )

Hi all,
I am working on a windows based client server application with
multiple forms. All forms are having custom title bars with no default
bars. There is one main form. Some forms are opened up as modal while
others are opened up as modeless on this main form.
Whenever some error occurs in client server communication we show it
in modal message box.

Now I ran into a case: a modal form is opened up on the main form.
And some error occurs in the previous server transaction which is now
displayed and opened up as a message box on the main form. But this
error message box opens up behind the already exisiting modal form.
Now user is unable to interact with this and any other opened form of
the application. This is occurring because error message box is having
the focus and it is not visible to user as it is behind the other
modal window.

And as all forms are having custom title bar so user gets no idea
that why application is not responding. But if default title bar would
be there then they gets highlighted by default. But in custom title
bar they don't get highlighted.

How can I highlight(blink) the error message box which is behind the
other modal dialog or how can I open it up on the opened modal
window??

Thanks!!

Hi,

You will need to rework your interface. It's the current modal form
the one that should display the MessageBox
 

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

Top