Strikeout in CheckBox in To-Do List C#

跟風遠走 提交于 2019-12-11 13:25:15

问题


I am trying to do "To-Do List" and when I mark something as checked to make the text strikeout:

        if (check.Checked)
        {
            check.Font = new Font(check.Font, FontStyle.Strikeout);
        }

What do I do wrong?

来源:https://stackoverflow.com/questions/19465123/strikeout-in-checkbox-in-to-do-list-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!