Что вам нужно сделать, это установить ResizeMode=CanResize
, а затем сделать следующее в коде:
protected override IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr LParam, ref bool handled)
{
switch (msg)
{
case WM_NCHITTEST:
//if the mouse pointer is not over the client area of the tab
//ignore it - this disables resize on the glass chrome
//a value of 1 is the HTCLIENT enum value for the Client Area
if (DefWindowProc(hwnd, WM_NCHITTEST, wParam, LParam).ToInt32() == 1)
{
handled = true;
}
break;
}
}
[DllImport("user32.dll")]
public static extern IntPtr DefWindowProc(IntPtr hWnd, int uMsg, IntPtr wParam,
IntPtr lParam);