Dear all,
i'm using window form with on check box i want checkbox check/uncheck on button click event in window form c#
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tanmay HajraRank #7,741 · 235 reputationPosted May 22, 2017, 10:07 PM EDT
Rafnas T PRank #280 · 8.8K reputationPosted May 22, 2017, 10:15 PM EDT
Nilesh JadavRank #109 · 20.3K reputationPosted May 22, 2017, 8:55 PM EDT
This is based on asp.net but I am sure it will work in win application too :
http://www.c-sharpcorner.com/blogs/uncheck-checkboxlist-items-when-button-is-clicked1
Gopal SharmaRank #9,687 · 203 reputationPosted May 22, 2017, 9:25 PM EDT
Tanmay HajraRank #7,741 · 235 reputationPosted May 22, 2017, 8:58 PM EDT
Rajveer singhRank #1,509 · 1.1K reputationPosted May 22, 2017, 9:00 PM EDT
Rajveer singhRank #1,509 · 1.1K reputationPosted May 22, 2017, 9:33 PM EDT
Tanmay HajraRank #7,741 · 235 reputationPosted May 22, 2017, 9:40 PM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted May 22, 2017, 9:54 PM EDT
if(checkBox.Checked)checkBox.Checked = false;elsecheckBox.Checked = true;Gopal SharmaRank #9,687 · 203 reputationPosted May 22, 2017, 9:55 PM EDT
Jitendra ShekhawatRank #1,909 · 772 reputationPosted May 22, 2017, 8:54 PM EDT
private void toggButton_CheckedChanged(object sender, EventArgs e)// everytime you click the button checkbox states will change.if(checkBox.Checked)checkBox.Checked = false;elsecheckBox.Checked = true;Jitendra ShekhawatRank #1,909 · 772 reputationPosted May 22, 2017, 8:57 PM EDT
Sivasankar GorantlaRank #5,536 · 296 reputationPosted Jun 18, 2017, 11:22 PM EDT