function ShowModal: TModalResult; overload; procedure ShowModal(const ResultProc: TProc<TModalResult>); overload;
System::Uitypes::TModalResult __fastcall ShowModal()/* overload */; void __fastcall ShowModal(const System::DelphiInterface<System::Sysutils::TProc__1<System::Uitypes::TModalResult> > ResultProc)/* overload */;
Shows the form as a modal dialog box.
Use ShowModal to show the form as a modal dialog box. When a modal form is opened the application cannot continue to run until the modal form is closed. Thus, ShowModal does not return until the form has closed. When the form has closed, it returns the value of the ModalResult property.
To close a modal form, set its ModalResult property to a nonzero value.