procedure TForm1.Button1Click(Sender: TObject); begin WriteComponentResFile(Caption+'.res', Self); end;