FormResize

 
void __fastcall TForm1::FormResize(TObject *Sender)
{
//button1 的位置一直在窗体的最右边
   Button1->Left = Form1->ClientWidth - Button1->Width;
}




原文地址:https://www.cnblogs.com/xe2011/p/f4e57ec90de899d28b80d1b40ef5c0b5.html