procedure TWndMain.Button1Click(Sender: TObject); var iNoComponent : integer; sNameForm : string; begin sNameForm := 'WndMain'; for iNoComponent := 0 to Application.ComponentCount - 1 do begin if Application.Components[iNoComponent] is TForm then begin if (Application.Components[iNoComponent] as TForm).Name = sNameForm then ShowMessage((Application.Components[iNoComponent] as TForm).Name); end; end; end;