Advertisement
rikokurniawan

OnCreate Form

Dec 7th, 2012
2,812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.55 KB | None | 0 0
  1. procedure TForm1.FormCreate(Sender: TObject);
  2. begin
  3.   With Self Do BEgin
  4.     Caption:='';
  5.     //BorderStyle:=bsNone;
  6.     Top:=(Screen.Height - Self.Height) div 2;
  7.     Left:=(Screen.Width - Self.Width) div 2;
  8.     WindowState:=wsMaximized;
  9.   End; //End With Self
  10.  
  11.   With DBNavigator1 Do Begin
  12.     Anchors:=[akLeft,akTop,akRight];
  13.     VisibleButtons:=[nbFirst,nbPrior,nbNext,nbLast];
  14.     Flat:=True;
  15.   End; // End DBNavigator1
  16.  
  17.   sBitBtn5.Anchors:=[akTop,akRight];
  18.   //DBGrid1.Anchors:=[akLeft,akTop,akRight,akBottom];
  19.   DBGrid1.Align:=alClient;
  20. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement