How to drag and move winform using mouse
I know how to 'drag and move' a winform by adding following code Protected Overrides Sub WndProc(ByRef m As Message) If (((m.Msg = 163) And ClientRectangle.Contains(PointToClient(New Point(m.LParam.ToInt32)))) And (m.WParam.ToInt32 = 2)) Then m.WParam = CType(1, IntPtr) End If MyBase.WndProc(m) If ((m.Msg = 132) And (m.Result.ToInt32 = 1)) Then m.Result = CType(2, IntPtr) End If End Sub But after a panel being added to winform, I can not 'drag and move' the winform within that panel area. Any idea of how to 'drag and move' within a panel? I mean the mouse point, click, hold and move within