作者: Jiszen
查看: 1688|回复: 2

SkinPushPanel报错问题

[复制链接]
Jiszen 发表于 2018-1-24 18:18:07 | 显示全部楼层 |阅读模式
查看: 1688|回复: 2
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)


回复 论坛版权

使用道具 举报

乔克斯 发表于 2018-1-25 00:47:47 | 显示全部楼层
试试www.cskin.net 最新版
 楼主| Jiszen 发表于 2019-3-14 18:20:19 | 显示全部楼层
乔克斯 发表于 2018-1-25 00:47
试试www.cskin.net 最新版

请问下使用这个控件默认标题栏颜色,标题字体好像有点变形,这个有办法吗
您需要登录后才可以回帖 登录 | 加入CSkin博客

本版积分规则

QQ|申请友链|小黑屋|手机版|Archiver|CSkin ( 粤ICP备13070794号

Powered by Discuz! X3.2  © 2001-2013 Comsenz Inc.  Designed by ARTERY.cn
GMT+8, 2024-3-29 00:15, Processed in 0.543060 second(s), 29 queries , Gzip On.

快速回复 返回顶部 返回列表