Remove title bar while keeping border

Viewed 579

I'd like to create a Form without title bar while keeping the border so I can still resize and snap it. Setting FormBorderStyle to None would work, but it destroys the border.

After searching Google for a bit, I encountered a method quite a few times, also here: Setting ControlBox to False as well as Text to an empty string seems to have worked on older versions of Windows, on Windows 10 however it looks like this:

Ugly rest of title bar

Note the ugly bar at the top, which I would like to get rid of. Every other solution I found - e.g. overriding WndProc - either simply did not work, or removed the border as well.

Edit: The white bar is in non-client area, it's what's left over from the title bar after removing the window buttons and title text.

0 Answers
Related