M
Matthias
Hello all
How to force a dialog box to appear on top of ALL
desktop windows?
Detailed description of the situation:
- MS Win XP Pro
- Dotnet 2.0.50727
- Visual Studio 2005 Pro
- Application written in C# (visual Windows app)
- Application written in Paradox
The C# app can be controlled either via it's normal
menu, or it can be controlled via commandline parameters
(repeatedly, since it is an SDI application). So it
serves as a "batch service" for the Paradox application
(or any other program, calling it with an appropriate
commandline).
The user is working in Paradox, and under that,
the C# application does it's silent service, eventually
not visible, because covered.
This works nice ...
... except if a dialog box happens to pop up in C#.
Then the dialog is above the C# application, BUT UNDER
the calling Paradox application. Thus it's not visible
and will not be clicked away by the user.
The dialog is raised by such line:
throw new Exception ("... some text ...");
Question: How to force such dialog to appeare on
top of ALL windows? And if that's not possible with an
Exception dialog box, can it be done with the ordinary
MessageBox.Show()?
Thanks in advance
Norbert
How to force a dialog box to appear on top of ALL
desktop windows?
Detailed description of the situation:
- MS Win XP Pro
- Dotnet 2.0.50727
- Visual Studio 2005 Pro
- Application written in C# (visual Windows app)
- Application written in Paradox
The C# app can be controlled either via it's normal
menu, or it can be controlled via commandline parameters
(repeatedly, since it is an SDI application). So it
serves as a "batch service" for the Paradox application
(or any other program, calling it with an appropriate
commandline).
The user is working in Paradox, and under that,
the C# application does it's silent service, eventually
not visible, because covered.
This works nice ...
... except if a dialog box happens to pop up in C#.
Then the dialog is above the C# application, BUT UNDER
the calling Paradox application. Thus it's not visible
and will not be clicked away by the user.
The dialog is raised by such line:
throw new Exception ("... some text ...");
Question: How to force such dialog to appeare on
top of ALL windows? And if that's not possible with an
Exception dialog box, can it be done with the ordinary
MessageBox.Show()?
Thanks in advance
Norbert