المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Change multiple checkbox values



C# Programming
01-12-2013, 09:41 AM
I have 2 forms. The second form (frmConvert) has 3 checkboxes. I can change the value of one checkbox by using :-

Form1
f.CheckBoxChecked = true;
(frmConvert)
public bool CheckBoxChecked { get { return checkBox1.Checked; } set { checkBox1.Checked = value; } }
What I'd like to know is, if I have 3 checkboxes (checkBox1, checkBox2 & checkBox3), how can I have a seperate line of code on form1 so I can change the value of each seperately, without having seperate functions for each?