unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, U_BaseList, Data.DB, Data.Win.ADODB, Vcl.StdCtrls; type TForm1 = class(TfrmBaseList) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation uses U_CompanySel; {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin try frmCompanySel := TfrmCompanySel.Create(Application); with frmCompanySel do begin if ShowModal = 1 then begin // Self.InitGrid(); end; end; finally frmCompanySel.Free; end; end; end.