Control f = (from c in this.Controls where c.Name == "dlty" select c).FirstOrDefault(); if (f is ListBox) { // Found the ListBox with name "dlty" }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)