0
votes

I'm seeing non-standard behavior (as compared to tools like Word and Visual Studio 2013) in my C++ Windows Forms application. We use Application::Run and then ShowDialog to show various modal dialogs. When one of the modal dialogs is up and I place another application window partially in front of the modal dialog, I can click on part of the modal dialog and it brings it back into the foreground as I expect.

However, if I instead click on part of the main window (shown with Application::Run) the modal dialog isn't brought to the foreground. This makes it hard to bring my application back so I can work on it. Ideas?

A simple MFC app created in VS2013 works as it should too. You can witness this with the About box which is shown with DoModal. I would have expected ShowDialog and DoModal to be equivalents. A simple C++/CLI or C# winforms application acts fine.

And this only happens in out application when our main window is maximized.

1
Are you properly setting the Owner property for the dialogs being shown? This property should be set to reference the parent window for every dialog.Leandro
Works just fine when I try it, never heard this complaint before. Repro code is required.Hans Passant
Some more information: * this only happens when our main window is maximized * I cannot reproduce this in a sample application (using C++/CLI or C#). * Can't post our real application of course.Ben

1 Answers

0
votes

It turns out that is caused by our use of the Syncfusion UI libraries. They will be fixing the bug.