B
Brad Wood
When I do this:
foreach( Button btn in myForm.Controls )
An exception is raised when no buttons exist. I would simply expect
execution to continue after the foreach loop (just as would be the case
with a regular for loop when the second expression is false when the
loop begins).
Is there an explanation for this?
foreach( Button btn in myForm.Controls )
An exception is raised when no buttons exist. I would simply expect
execution to continue after the foreach loop (just as would be the case
with a regular for loop when the second expression is false when the
loop begins).
Is there an explanation for this?