珂珂的个人博客 - 一个程序猿的个人网站

最新发布

winform

FYJ.Winform皮肤-窗体组件-仿QQ调色面板(五)-按钮1

admin 阅读(3064) 评论(0)

由于是用的自定义的按钮,系统按钮不能满足要求,所以需要对控件进行一定扩展,如果是继承Button有时会出现黑框,所以继承UserControl并且实现IButtonControl接口写了5种状态,正常情况、进入按钮区域、按下按钮、移出按钮区域、按钮被禁用,这5种状态是换5张不同的图片,也可以是一张图片进行不同区域的截取usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Drawing; usingSystem.ComponentModel; usingSystem.Windows.Fo [...]   阅读全文