If you used Show to show a modal dialog or to override the standard modal dialog Show, use ShowModal instead.
See also
Dialogs and controls