Ok without seeing the code that is erroring, thats going to be very hard, apart from
3) Basically you arent using the variable. So it is redundant, you can remove this variable and then this error will go.
6) You need to either check it is NOT NULL before you use it, OR, initialize it with some content. for example
Dim i as Integer = 0
rather than
Dim i as Integer
I believe if you click on the error it will take you to the line of code where the issue lies.
Also, buy yourself a version of
Resharper [
^] with VB Support. That could help you.