private MousePos GetMousePos(Point location)
{
var result = MousePos.NoWhere;
int rightSize = Padding.Right;
int bottomSize = Padding.Bottom;
var testRect = new Rectangle(Width - rightSize, 0, Width - rightSize, Height - bottomSize);
if (testRect.Contains(location)) result = MousePos.Right;
testRect = new Rectangle(0, Height - bottomSize, Width - rightSize, Height);
if (testRect.Contains(location)) result = MousePos.Bottom;
testRect = new Rectangle(Width - rightSize, Height - bottomSize, Width, Height);
if (testRect.Contains(location)) result = MousePos.BottomRight;
return result;
}