Dialogs are containers that can have a set of buttons at the bottom. Dialogs are automatically centered on the screen, and on screen changes the buttons are relaid out.
To make the dialog box run until an option has been executed, you would typically create the dialog box and then call Application.Run on the Dialog instance.