Multiple modal dialogs simultaneously on a single form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mohit

    Multiple modal dialogs simultaneously on a single form

    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!!
  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: Multiple modal dialogs simultaneously on a single form

    On Oct 10, 5:30 am, Mohit <mohitscj...@gm ail.comwrote:
    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

    Comment

    Working...