Hi All,

This may be a simple question but it surely borthered me a lot. Ok, i have a form A as

public frmA as new frmTypeA()


In the program, the form A is opened by
....
frmA.show
...

The problem is: after the frmA is closed, i.e., user clicks the X on the right-top of the form, the frmA gets disposed. Then, when it comes to frmA.show again, a error as " can not access a disposed object frmA" is thrown out . I tried to use the following code to solve the problem but doesn't work at all

if frmA is nothing then
frmA = new frmTypeA()
endif
frmA.show()

Any idea how to solve the problem ? I like .Net a lot , specially the OOP, shared class members, ...., etc. But under some circumstances, i miss the old VB6, the debug capability for an example.