--> Limiting Form Size on Delphi Aplication | Delphi Tips Trick

For Newbie

Tuesday 15 November 2011

Limiting Form Size on Delphi Aplication

| Tuesday 15 November 2011

Limiting the maximum and minimum size (width and height) Form.

# Method 1
By coding:
TForm1.FormCreate procedure (Sender: TObject);
begin
   with Constraints do
   begin
     MaxHeight: = 200; / / Height Max
     MaxWidth: = 200; / / Max Width
     MinHeight: = 200; / / Height Min
     MinWidth: = 200; / / Width Min
   end;
end;

Method # 2
Without coding:
Find property Constraints in Object Inspector. Set the value / property value of MaxHeight, MaxWidth, MinHeight and MinWidth.
form size limit delphi


Learning Delphi - Form Size Limits
Although Form1.BorderStyle = bsSizeable, but the user can not resize the Form1.

Related Posts

No comments: