Sizable Forms Without a Title Bar

Sizable Forms Without a Title Bar

If you set a form properties caption to “” and controlbox to False, then a form with borderstyle 3 (fixed dialog) willdisplay without its title. Unlike borderstyle zero (none), itkeeps the form’s 3-D properties. If you do this with a borderstyle5 (sizable toolwindow) form, then you have a completely resizable(down to 1×1 twip) form.

This can also be done from your code in run time. Adding or removingthe caption will add or remove the title bar. Be aware that thistriggers a form resize event, and that the task bar caption willalso be blank. Finally, remember to put a close button on yourform!


Share the Post: