Does anyone know how to programical set the wclClient control from a variable? I have 8 wclClient controls on my form and based on a dropdown I want to connect to 1 of them. For example, combo selected is 2, I want to connect to wclClient2. This is what I tried but it doesn't find the control on my windows form:
string strwclClientControlName = String.Format("wclClient{0}", tsbMonitoredRouter.SelectedItem);
foreach (Control ctl in Controls)
{
if (ctl.Name == strwclClientControlName)
{
}
}