Calling Dim and Initialize will create a new form and if there are no other references to the previous form then it will be cleared from memory.
The problem is that I have a main form containing the application menu.
In this class I have defined some public variables from other classes to create and display other forms.
The reason for this was that in each form I need some public variables in other forms.
Suppose the menu class is named mainMenu.
In class a I will access the variable of class b.
mainMenu.b.var = "test"
If I want all variables of class b to be reset and created from scratch, I need to reinitialize the variable in the menu class.
I am worried that the previous initialization will take up memory.