I've a TabControl with the Milborne renderer and it throws an exception if I set the width or height to 0. This won't happen if I choose any other renderer. Here's the stack trace:
System.ArgumentException: Rectangle '{X=0,Y=0,Width=844,Height=0}' cannot have a width or height equal to 0.
at System.Drawing.Drawing2D.LinearGradientBrush..ctor(Rectangle rect, Color color1, Color color2, LinearGradientMode linearGradientMode)
at TD.SandDock.Rendering.MilborneRenderer.DrawTabControlBackground(Graphics graphics, Rectangle bounds, Color backColor, Boolean client)
at TD.SandDock.TabPage.OnPaintBackground(PaintEventArgs pevent)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmEraseBkgnd(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I'm using SandDock 2.2.0.0 and VS2005
Regards,
Jacobo