Hi,
because method this.Dock contains something like this:
if (!((value >= 0) && (value <= 5)))
{
throw new InvalidEnumArgumentException("value", (int) value,
typeof(DockStyle));
}
but DockStyle { None =0, Top, Bottom, Left = 3, Right = 4, Fill = 5 } with
combination DockStyle.Left | DockStyle.Right give you 7.
Regards,
Alex
http://devkids.blogspot.com