Hi,
I am using an UltraPeekPopup control. The popup displays a control which can display another form using Form.ShowDialog(). When the dialog is displayed, it is shown behind the UltraPeekPopup.
Is there any option to get the UltraPeekPopup to allow the dialog to be displayed in front of it?
thanks,
- MAx
Hello Max,
I've tried to reproduce your issue, but it doesn't seem to be reproduced. I attached a sample application which I used to test the behavior. Could you take a look at it and see whether or not it reproduces your issue?
The application is composed of two forms: Form1 and Form2. Form1 has a button which shows a ultraPeekPopup when it is clicked. The UltraPeekPopup's content has another button which shows Form2 by calling ShowDialog(). I tested by the following steps:
After this step, Form2 is shown front. I couldn't see your issue that Form2 is displayed behind the UltraPeekPopup.
If I'm missing anything, please let me know.
5710.WindowsFormsApp1.zip
Thanks so much for your reply. By looking at your code I was able to see that my issue was that I hadn't set the dialog owner.
My code was calling:
f2.ShowDialog();
and this causes the z-order issue. When I provide the dialog owner as per your code:
f2.ShowDialog(this);
then the dialog works as expected.
I'm glad to know that you solved your problem.
If you need further assistance, please let me know.