|
-
Nov 1st, 2002, 10:24 AM
#1
Thread Starter
Lively Member
show a form after been closed
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|