To move a borderless form with the left mouse button we can use this code and works just fine,
ReleaseCapture
SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&

But I want to use the middle mouse button, I tried changing it to WM_NCMBUTTONDOWN, but it doesn't do anything.

Any ideas?