Click here to Skip to main content
15,913,211 members
Please Sign up or sign in to vote.
2.00/5 (4 votes)
See more:
I declared a array in VB and initialized it however I want the value to stay in memory even if I turn of VB.

Also if anyone knows how to have multiple forms share a module or an array.
Posted
Comments
Johnny J. 25-Mar-11 5:05am    
Your question is not clear. "Turn off VB" - do you mean the Visual Studio IDE or your running compiled EXE? You can't turn off VB - it's merely a programming language - not a program in itself.

The best technique to accomplish your task is Serialization, have a look at MSDN article: "HOW TO: Serialize and Deserialize XML in Visual Basic .NET"[^].
 
Share this answer
 
IF I am not mistasken,in VB it has class module that all form in project can use it, Similar an array if it was declared in module, All form can use this array
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900