Hi Palli,
The only thing I am using it for is to store user-specific variables, such as UserID, UserName, UserLocation, etc. These are things that I cannot store or lookup in a database, and I need to access these variables from different Forms within the application as the user goes to them.
For example, when the user logs in, I am storing their UserID (and other variables), and then I use that UserID throughout the application to pull information from the database that is related to them, based on their UserID.
Right now I am using your suggestion. I created a Public class called GlobalVariables, with Get and Set storing the variable in VWGContext.Current("variable_name"). In each Form, I use Private GC as new GlobalVariables.....Dim UserID as string=GC.UserID
I have not tested with multiple users yet to ensure that they are indeed getting their own information.
So, what do you think? :-)
Thanks!!