I prefer to set properties in code rather than via the object inpsector as I find it more maintainable that way.
I want to set
Form1.BorderIcons := ;
Form1.Position := poMainFormCenter;
in code. It gived a visiblity erro if I try and set them in my Form1.FormCreate, If I try in Form1.FormShow the assigments are not effective whereas they are if Is et them in the object inspector. How can I achieve this in code?