Okay, this is a simple question, but it's been racking my brain for a while now.
I have two forms: Form1and Form2.
I have some checkboxes on Form2, and I want to use data from checked check boxes on Form2 on Form1 but when I add the following code on Form1 it's giving me errors:
if (cbTESTING.Checked)
{
uri_testings += string.Format("{0}.TESTINGS,", word);
}
I'm getting an error with cbTESTING as it's not referenced on Form1.
How can I use or reference checkboxes from Form2 in Form1?
Form1have aform2variable of typeForm2?socketsandeventsor usingWCF. If one of them creates the other it would be easier for us to help you either by my answer in the case ofForm1creatingForm2or I can tell you if it was the other way around.