Hi ,
I am pretty new to c# .I am trying to create a checkbox group ,when check box checked ,it has to strike off the text next to it ,with uncheck it as to undo the strike.
Please urgent...need help with code.....ASAP.
Thanks,
Chin-
Code for check box with strike option.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Apr 30, 2007, 11:05 AM EDT
To handle the issue of striking out the checkbox label, this will do it:
private
void checkBox1_CheckedChanged(object sender, EventArgs e){
Font startFont = checkBox1.Font;
checkBox1.Font = new Font(startFont, startFont.Style ^ FontStyle.Strikeout);
}