Skip to content

MessageBox issue #873

Closed
Closed

Description

@itg-assistant

Tim Larson asked 2017-05-31 14:09:23 UTC

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

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-05-31 14:18:18 UTC

    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.

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 12, 2026
  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Tim Larson answered 2017-05-31 14:22:59 UTC

    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.

  4. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-05-31 14:44:32 UTC

    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());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions