for each i as (object here) or for each i in (form here)
i cant seem to get either of these two vb6 commands correctly
VB Code:
dim i as popbox
for each i in frmmain ' where frmmain is the form i am on
'do something with object here
next i
' and
dim i as object
for each i as popbox ' where popbox is a usercontroll in the current form
'do something with object here
next i
so what is the proper Vb.net way to loop through a certain kind of object and do something with it?
dont know if this wil help
Over the weekend ive been messing with my old vb program i started ages ago and never got around to finishing it
there was loads of unsupported vb6 commands in my code which i really really needed to use so i just added this to import list
Imports vb = Microsoft.visualbasic
then if you need to access an old vb6 function then just use this
vb.Left(blah,1)
I guess this is not the correct way to do things but when your stressed out about finding how to do it and you know how vb6 done it, its a good alternative
Hope it helps