EFileTahi-A
Contributor
Am looping all objects inside a panel which I want to get the combobox type ones to perform some special tasks. The problem is, when I get a combobox (identified through its name (starts With "cbx_") I can't access its comboBox special features like ".items.add" . So? I will I walk around this one?
Although this pice of code does not works, it gives you an clear ideia of what I need to do...
tks for the attention
Code:
foreach (System.Windows.Forms.Control cCtrl in cTargetPanel.Controls)
{
if (cCtrl.StartsWith("cbx_") == true)
{
cCtrl.Items.Add("bla bla");
}
}
Although this pice of code does not works, it gives you an clear ideia of what I need to do...
tks for the attention