void __fastcall TForm1::Button2Click(TObject *Sender) { ShowMessage("hi"); } void __fastcall TForm1::Button1Click(TObject *Sender) { Button2Click(Sender); }