how to get all panels in form in c#

119

how to get all panels in form in c# -

foreach (Control c in this.Controls) {
    if (c is Panel) {
        //DO
    }
}

Comments

Submit
0 Comments