We have asked for code as this may help explain where your going wrong. If you do not participate then how do you expect to get help?
It could be a scope problem.
Local:
Public Class FooForm
Private Sub Foo()
Dim obj As Object = {something}
End Sub
End Class
Class:
Public Class FooForm
Private obj As Object
Private Sub Foo()
obj = New Object
End Sub
End Class