# Creating Dialog Boxes

## Message box

A Message Box displays a prompt for the user. Although it is a user interface control, it does not appear on the Layout so when you drag it to your Layout, it is added to the Shelf. To learn more about Message Box go to the `Understanding the Message Box</topics/user_interface/ios/understanding_the_message_box>` topic.

## Modal screens

A modal screen is a screen that is also displayed without being "pushed" onto the current screen. A modal screen cannot have toolbars and should not have other screens pushed onto it. You can show and close a modal screen using the `MobileScreen.ShowModal<mobilescreen.showmodal>` method.

In this example, the Login screen is being displayed modally from the current screen:

``` xojo
Login.ShowModal(Self)
```

### Sample project

- Examples/Platforms/iOS/ShowModal

<div id="/topics/user_interface/ios/creating_dialog_boxes/see_also">

<div class="seealso">

`MobileMessageBox</api/user_interface/mobile/mobilemessagebox>` class; `Understanding Screens</topics/user_interface/ios/understanding_screens>`, `Understanding the Message Box</topics/user_interface/ios/understanding_the_message_box>` topic

</div>

</div>
