Hey,
I extended different controls (textbox, combobox,..) with a property.
But now I will find that a control has that property. How can I do this?I
don't want to test if textbox, if combobox. I want to search on every control
(neither which control) if he has that property before I take any action.
if (ctr1.Propery1 == null) this is not correct.
foreach( Control ctr1 in this.groupBox1.Controls)
{
if (ctr1.Propery1 == null) continue;
if (ctr1.Propery1 == "BLA")
{
ctr1.Focus();
break;
}
}
Is there on a control a collection of the properties he has? Can I search in
that collection.
If the control has that property I have to do something.
Tkx,