Author: dabradley | Posted on: 11/24/2008 7:59:09 PM | Views : 331


I have a VS2005 Windows VisualBasic project for which I have a simple Struct.  But an instance of this Struct uses a substantial amount of data.  So, I want to create an instance of it and be able to refer to that instance from several methods instead of having to re-create the same data for each method.  It is a scope problem which I do not understand.  I have tried placing the instance in a Public method, but the instance is then still unavailable from within other methods.  What am I doing wrong?

 

Imports System

Imports System.Windows.Forms

Imports System.Security.Permissions
Go to the complete details ...