Dialog box which block current execution
I'm looking for a solution which show me up a pop-up dialog box, and after the creation of this, it will block the execution of my main code until the user click on the OK button into the popup dialog box.
I try to use modal window, but it doesn't block the execution.
CREATION DIALOG BOX
SHOW DIALOG BOX
when the dialog is shown, then the code B is executed only if we destroy the dialog box.