|
-
May 13th, 2002, 06:55 PM
#1
Thread Starter
Fanatic Member
i am an idiot
ooookay..so maybe i'm slow, but how do i check if a class was or wasn't disposed of?
i declare form instances in a module, then call myform.show. the myform.dispose(true) when i get rid of it, but then if i try myform.show again it dies...
or, does someone have a REALLY simple way of loading/unloading forms ala VB6 without all this hassel? it was so easy back then....
-C
-
May 13th, 2002, 07:02 PM
#2
If you want to show myform after Disposing it, just do this first:
myform = New myformclassname()
Also, you can find out whether your form was already disposed by using IsDisposed:
Code:
If myform.IsDisposed Then
'The form was disposed already
Else
'The form wasn't already disposed
End If
-
May 13th, 2002, 07:03 PM
#3
Thread Starter
Fanatic Member
sweet thanks...i'm still getting used to this stuff. heeh
why did they have to remove the simple load and unload thing??!?!?!?!
-C
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
|