G
Guest
Hi,
I'm writing a component that iterates through the ParentForm.Controls
collection looking for components of a certain type. However, some of the
components I need to find are of a non-visual nature and aren't present in
the collection. Is there another collection I need to look in. I've tried the
form's components collection, but its empty.
ie...
for(int x = 0; x<this.ParentForm.Controls.Count; x+=1){
MessageBox.Show(this.ParentForm.Controls[x].Name);
MessageBox.Show(this.ParentForm.Components[x].Name);
}
Thanks
I'm writing a component that iterates through the ParentForm.Controls
collection looking for components of a certain type. However, some of the
components I need to find are of a non-visual nature and aren't present in
the collection. Is there another collection I need to look in. I've tried the
form's components collection, but its empty.
ie...
for(int x = 0; x<this.ParentForm.Controls.Count; x+=1){
MessageBox.Show(this.ParentForm.Controls[x].Name);
MessageBox.Show(this.ParentForm.Components[x].Name);
}
Thanks