SkinPushPanel里面带TableLayoutPanel,带skinButton,点击折叠时候报错
System.ArgumentException
HResult=0x80070057
Message=矩形“{X=0,Y=0,Width=137,Height=0}”的宽度或高度不能等于零。
Source=System.Drawing
StackTrace:
在 System.Drawing.Drawing2D.LinearGradientBrush..ctor(Rectangle rect, Color color1, Color color2, LinearGradientMode linearGradientMode)
在 CCWin.SkinControl.SkinButton.RenderBackgroundInternal(Graphics g, Rectangle rect, Color baseColor, Color borderColor, Color innerBorderColor, RoundStyle style, Int32 roundWidth, Single basePosition, Boolean drawBorder, Boolean drawGlass, LinearGradientMode mode)
在 CCWin.SkinControl.SkinButton.OnPaint(PaintEventArgs e)
在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
在 System.Windows.Forms.Control.WmPaint(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
|