user2242090
user2242090

Reputation: 37

Delphi Lock the size of form

I've loaded a very nice image as background in my program, the problem is that there is part of the program that is white, because the image does not cover all the background. I can set the exe's size, but users can change the size, which is something i don't want to. How am i doing it?

thanks

Upvotes: 0

Views: 1562

Answers (1)

Remy Lebeau
Remy Lebeau

Reputation: 596407

The form's BorderStyle determines whether the user can resize the form or not. Set the BorderStyle to a non-sizable value (bsDialog, bsSingle or bsNone), and then set the form's ClientWidth/ClientHeight to the desired values to match your background image.

Upvotes: 1

Related Questions