D
Doug
HI,
I have a user control where checkboxes are added to it dynamically from the
database. I want to be able "tell" the parent form what has been checked
and what hasn't. I know I have to iterate through the controls on the form,
check to see if the control's name has part of a substring to determine if
it is one of the controls i'm looking for and then cast it to the checkbox
type and return what i need. The ONLY issue i have is I'm not sure how to
do all that. I know what i need to do, just not sure how to do it.
i have the following as my starting point, but not sure where to go from
here. Can someone please help me w/ a quick example. Thanks in
advance.....
foreach(Control ctrl in this.Controls)
{
.....
}
Doug
I have a user control where checkboxes are added to it dynamically from the
database. I want to be able "tell" the parent form what has been checked
and what hasn't. I know I have to iterate through the controls on the form,
check to see if the control's name has part of a substring to determine if
it is one of the controls i'm looking for and then cast it to the checkbox
type and return what i need. The ONLY issue i have is I'm not sure how to
do all that. I know what i need to do, just not sure how to do it.
i have the following as my starting point, but not sure where to go from
here. Can someone please help me w/ a quick example. Thanks in
advance.....
foreach(Control ctrl in this.Controls)
{
.....
}
Doug