我认为更好更好 For i = Me.Controls.Count To 0 Step -1 Dim ctl As Control 它的类型是ctl是标签然后 Me.Controls.Remove(ctl) 下一页 我希望这有帮助 Cor I think that the collections in the for each loop is changed in the the foreach loopI think that nicer isFor i = Me.Controls.Count To 0 Step -1Dim ctl As Controlit typeof ctl is Label thenMe.Controls.Remove(ctl)NextI hope this helpsCor 中被更改 我认为更好的是对于i = Me.Controls.Count到0步-1 Dim ctl作为控制它的类型ctl是Label然后 Me.Controls.Remove(ctl)下一页我希望这有帮助 Cor for each loop I think that nicer is For i = Me.Controls.Count To 0 Step -1 Dim ctl As Control it typeof ctl is Label then Me.Controls.Remove(ctl) Next I hope this helps Cor 这篇关于Wierd For ...每个行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-27 15:19