MessageBox issue

0
0

I am calling a message box on my form when a button is pressed and the message box does not show up. I created a blank project and it works fine but it will not show in my other project.

Any clues at what to look at?

Thanks,

Tim Larson

  • You must to post comments
0
0

Thanks. I can reproduce. The problem is that you have two main surfaces: the Application.MainPage and the Application.Desktop. The page goes over the desktop, but then floating windows (Forms, MessageBox) are created  in the Window Manager on the Desktop which is now behind the MainPage. I’ll see if we can detect this case and use the page as the root surface as if the desktop wasn’t there.

When the Window which is now a Page is shown, the Page is automatically made the MainPage coveting the browser.

The reason Wisej creates the floating windows in the Desktop Window  Manager if there is a desktop is because you can create Desktop as a child of a Page (cannot have a Page as a child of a Desktop). This allows you to create a main Page with a “frame” and have a child desktop as a container for windows – and you can switch multiple desktops.

Try

Application.Desktop = null;

Or

Application.Desktop = null;

Application.MainPage.Controls.Add(new MyDesktop());

 

  • You must to post comments
0
0

I was able to replicate it in a simple solution.  I created a new desktop application and then changed the window1 from a form to a page and it will not show.  I don’t see any errors.

  • You must to post comments
0
0

Try MessageBox.Show(“Test”, modal:false). Also see if there is an exception on the server, in VS 2015/2017Debug->Exception Settings and then check the Common Language Runtime Exceptions. In VS 2013 is different: Debug->Exceptions, then enable Common Language Runtime Exceptions.

Also try Alert.Show(“Test”). See if it shows.

And of course, with F12 in Chrome see if there is a javascript error.

If you can send a link privately support at wisej.com or support at iceteagroup.com we can look at the client side and see if there is something we can spot.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.