How to make a Window that does not have a Title bar move
问题 Is there any control that can move the Window without the Title bar(Top one)/No frame at all. I am making a note application as you know so I want it to be compact. 回答1: You need to return HTCAPTION from the WM_NCHITTEST in your WndProc: public partial class Form1 : Form { public Form1() { InitializeComponent(); } const int WM_NCHITTEST = 0x0084; const int HTCLIENT = 1; const int HTCAPTION = 2; protected override void WndProc(ref Message msg) { base.WndProc(ref msg); if (msg.Msg == WM