procedure TForm2.ToolButton1Click(Sender: TObject);
var
  frm: TForm;
begin
  frm := TForm.Create(Application);
  frm.Parent := self.PageControl1.ActivePage;
  frm.Show;
  frm.BorderStyle := bsNone;
  frm.WindowState := wsMaximized;
end;

 

void __fastcall TForm1::ToolButton1Click(TObject *Sender)
{

    TForm *frm;
    frm = new TForm(Application);
    frm->Parent = this->PageControl1->ActivePage;

    frm->BorderStyle = bsNone;
    frm->WindowState = wsMaximized;
    frm->Show();
}

 

posted on 2016-05-21 13:51  lypzxy  阅读(181)  评论(0编辑  收藏  举报