Make a form have square corners with all Windows 7 personalisations

LeighWardle used Ask the Experts™
Hi Experts,

When running Windows 7, Forms with default properties have rounded corners on the top edge.
If I personalise Windows 7, all corners of Forms are square.

Just wondering if it's possible to make a form have square corners with all Windows 7 personalisations - so my users will see square corners, not matter what personalisation they are running.

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
It is possible to create a window of ANY shape using Regions.

Now I don't know how easy it would be in VB (as Window API functions are needed to accomplish window shaping).  But the basic procedure is to utilize API functions such as 'CreateRectRgn' and 'CombineRgn' to define a region, then call 'SetWindowRgn' to apply the region to the window.  The only other requirement is that the style of the window needs to be a borderless dialog:

(i.e. remove the following API properties:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial