How can I query all Childcontrols of a Winform recursively?
Posted
by codymanix
on Stack Overflow
See other posts from Stack Overflow
or by codymanix
Published on 2010-03-26T16:48:27Z
Indexed on
2010/03/26
16:53 UTC
Read the original article
Hit count: 375
Iam using windows forms. How can I query all child controls of a Form recursively which have a certain type?
In SQL you would use a selfjoin to perform this.
var result =
from this
join this ????
where ctrl is TextBox || ctrl is Checkbox
select ctrl;
Can I also do this in LINQ?
© Stack Overflow or respective owner