In Windows 7, the volume mixer windows has a specific style, with a thick, transparent border, but no title bar. How do i recreate that window style in a winforms window?
I tried setting Text to string.Empty, and ControlBox to false, which removes the titlebar, but then the border also disappears:
For a fixed size window, you should still use
FormBorderStyle.SizableToolWindow
, but you can override the form'sWndProc
to ignore non-client hit tests (which are used to switch to the sizing cursors):If you want to really enforce the size, you could also set
MinimumSize
equal toMaximumSize
on the form.