vb.net - Performing a loop after another has finished -


it's pretty simple really. want second loop start once first on e has stopped...

            dim integer         each c control in allsongspanel.controls             if c.backcolor = color.fromargb(30, 30, 30)                 my.computer.filesystem.deletefile(c.tag)                 = c.name                 c.dispose()                 deletedcount = deletedcount + 1             end if         next         itemcount = 0         each c control in allsongspanel.controls             if c.width = allsongspanel.width - 23                 itemcount = itemcount + 1                 c.name = itemcount             end if         next 

i don't have many ideas on , can't find questions on over google either. ideas have more extensive need want check if there's easier solution first. i've looked @ loops on msdn , not, didn't find anything.

change way delete controls.

dim mdeleted new list(of control) dim integer  each c control in allsongspanel.controls     if c.backcolor = color.fromargb(30, 30, 30)         my.computer.filesystem.deletefile(c.tag)         = c.name          mdeleted.add(c)          ' no longer needed (?)         'deletedcount = deletedcount + 1     end if next  each c control in mdeleted     ' think right syntax:     allsongspanel.controls.remove(c) next  ' add second loop...not sure doing 

deletedcount same mdeleted.count.

i integer = c.name not make sense either.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -