Here is a link from CodeProject on moving a form without a titlebar.
Now, I know that in the image it shows a titlebar. But if you download the code, remove the form's Text
and set the ControlBox
to false; You get a form which is moveable and without a titlebar.
I should note that it still has a thin border (just like you mentioned you want)
Update:
After viewing @HansPassant's own answer (which is also a very good solution) - Setting the FormBorderStyle
property to None
in the CodeProject code completely removes the border and still makes the form moveable:
private void InitializeComponent()
{
this.Text = String.Empty;
this.ControlBox = false;
this.FormBorderStyle = FormBorderStyle.None;
....