SetBounds((Screen.WorkAreaWidth -1100) Div 2,
(Screen.WorkAreaHeight-500) Div 2,
500, 300);
Constraints.MinHeight:= 700;
Constraints.MaxHeight:= 700;
Constraints.MinWidth := 1100;
Constraints.MaxWidth := 1100;
I Have been using this code to set the size of a modal form for quite some time.
Today when I opened the project it threw an error. I have no Idea why all of a sudden it throws an error.
I would like the form to open in the center of the screen, not be resizable.