word中的加粗变斜之类的一直让我以为是button,直到我接触了自定义控件,才发现实现这种机能最好的是CheckBox,然后我们在做一个系统的时候,这种控件有可能要用好多次,总不能在用一次的时候,就去拉一个CheckBox,并进行各种复制吧,所以最好的方式就是自定义一个控件,自定义点击的Image属性,这样你只要替换掉Image,你就要让这个变成变粗的CheckBox,变斜的CheckBox等等. private void CmpCheckButton_MouseLeave(object s…