H
h
Hi!
I have a user control called ListItemControl. This works ok:
ListItemControl li = new ListItemControl();
When I iterate with Enumerator through all controls using:
IEnumerator e = pnlList.Controls.GetEnumerator();
while (e.MoveNext())
{
object o = e.Current;
if(o.GetType().Equals(GetType(ListItemControl)))
{
i++;
}
}
I get 'ListItemControlTest.ListItemControl' denotes a 'class' where
a 'variable' was expected
What do I do wrong? I looked at the MSDN sample and it looked pretty
straight forward, but I can't get it to work.
thanks,
h
I have a user control called ListItemControl. This works ok:
ListItemControl li = new ListItemControl();
When I iterate with Enumerator through all controls using:
IEnumerator e = pnlList.Controls.GetEnumerator();
while (e.MoveNext())
{
object o = e.Current;
if(o.GetType().Equals(GetType(ListItemControl)))
{
i++;
}
}
I get 'ListItemControlTest.ListItemControl' denotes a 'class' where
a 'variable' was expected
What do I do wrong? I looked at the MSDN sample and it looked pretty
straight forward, but I can't get it to work.
thanks,
h