矩形“{X=0,Y=19,Width=0,Height=-19}”的宽度或高度不能等于 0

Rectangle '{X=0,Y=19,Width=0,Height=-19}' cannot have a width or height equal to 0

无中生有,我得到这个错误:

System.ArgumentException was unhandled
  Message="Rectangle '{X=0,Y=19,Width=0,Height=-19}' cannot have a width or height equal to 0."
  Source="System.Drawing"
  StackTrace:
       at System.Drawing.Drawing2D.LinearGradientBrush..ctor(Rectangle rect, Color color1, Color color2, LinearGradientMode linearGradientMode)
       at Infragistics.Win.DrawUtility.DrawBackColor(Control control, Graphics graphics, AppearanceData& appearanceData, Rectangle rect, Rectangle invalidRect, Boolean enabled, IDrawCache drawCache, AlphaBlendMode alphaBlendMode, Blend blend)
       at Infragistics.Win.DrawUtility.DrawBackColor(Control control, Graphics graphics, AppearanceData& appearanceData, Rectangle rect, Rectangle invalidRect, Boolean enabled, AlphaBlendMode alphaBlendMode)
       at Infragistics.Win.UltraWinTabControl.UltraTabPageControl.PaintBackground(PaintEventArgs e)
       at Infragistics.Win.UltraWinTabControl.UltraTabPageControl.OnPaintBackground(PaintEventArgs e)
       at System.Windows.Forms.Control.PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle, Region transparentRegion)
       at System.Windows.Forms.Control.PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle)
       at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
       at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
       at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
       at System.Windows.Forms.Control.PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle, Region transparentRegion)
       at System.Windows.Forms.Control.PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle)
       at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
       at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
       at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
       at System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
       at System.Windows.Forms.Control.WmEraseBkgnd(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


备注:
+ 我在 Visual Studio 2005 年使用 VB.Net & Infragistics。
+ 单击另一个选项卡时出现错误。
+ 如果我使用 F5 或 运行 不使用调试器进行调试,则会出现该错误,但如果我使用 F10 和断点进行调试,则不会出现该错误。
+ 我搜索了 .designer.vb 文件(27000 多个代码行!)但没有找到任何线索。
+ 在另一个 .designer.vb 文件中,我尝试通过在 Rectangle 实例化中输入 0 和负数作为宽度和高度参数来重现错误,然后 运行 程序。错误没有出现。

这个错误困扰了我几天。

有人能指出根本原因和解决方案吗?
请帮助,并提前致谢。

在我将用户控件的 属性 MaximumSize 更改为 2000,2000(之前为 0,0)后错误消失了。这更像是解决方法,我还没有发现它是如何工作的,因为其他用户控件的 MaximumSize(s) 也是 0,0 但它们工作正常没有错误。