G
Guest
I have a windows class form2 that contains a datagrid. With Cor's help I am
using this strategy to better manage memory.
In form one I have:
dim Matrix_A as form2
Private Sub populateA()
Dim Matrix_A As New form2
Method to fill grid and display form
end sub
Later, after the first execution of populateA I want to be able to hide the
shown form and reexecute populateA with new information. However, after
executing the first populateA completes Matrix_A is nothing.
Since it is nothing, how can I make it dissappear so I won't have two
(confusing) Matrix_A forms displayed? And, if it is nothing, how come I can
browse its datagrid?
using this strategy to better manage memory.
In form one I have:
dim Matrix_A as form2
Private Sub populateA()
Dim Matrix_A As New form2
Method to fill grid and display form
end sub
Later, after the first execution of populateA I want to be able to hide the
shown form and reexecute populateA with new information. However, after
executing the first populateA completes Matrix_A is nothing.
Since it is nothing, how can I make it dissappear so I won't have two
(confusing) Matrix_A forms displayed? And, if it is nothing, how come I can
browse its datagrid?