简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM