How to disable / hide the icon from the form?

How to create a second form using the close button, but without an icon.

+4
source share
3 answers

Set the BorderStyle form to bsDialog and use this code in the create form,

SetWindowLong(Handle,gwl_style,GetWindowLong(handle,gwl_style) or WS_THICKFRAME); ClientHeight := Height; Refresh; 

I think this is an ugly hack, but you can find it in order.

+2
source

Set the BorderStyle form to bsDialog.

+5
source

I am afraid that you cannot do this otherwise than experimenting with the BorderStyle property, as this is done internally by VCL.

0
source

All Articles