I'm trying to create a simple application that show two form-windows. The first one, the main form should be able to display a popup form-window when a bottom is clicked. The second form showed must disable the functionality of the main form.
Please show a simple code for this example.
Try:
procedure ShowModalForm()
var
newForm: TNewForm;
begin
newForm := TNewForm.Create(nil);
try
newForm.ShowModal;
finally
newForm.Free;
end;
end;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With